MCPcopy Create free account

hub / github.com/Z3ratu1/geacon_plus / functions

Functions187 in github.com/Z3ratu1/geacon_plus

↓ 1 callersFunctionMakeMetaInfo
()
packet/packet.go:178
↓ 1 callersFunctionMakeMetaInfo4plus
* MetaData for 4.1 Key(16) | Charset1(2) | Charset2(2) | ID(4) | PID(4) | Port(2) | Flag(1) | Ver1(1) | Ver2(1) | Build(2) | PTR(4) | PTR_GMH(4) |
packet/packet.go:238
↓ 1 callersFunctionMakePacket
MakePacket make reply command, return AES encoded data
packet/packet.go:122
↓ 1 callersFunctionMakeToken
(b []byte)
command/unixImpl.go:54
↓ 1 callersFunctionMoveFile
(b []byte)
command/fileSystem.go:293
↓ 1 callersFunctionParsePacket
(buf *bytes.Buffer, totalLen *uint32)
packet/packet.go:98
↓ 1 callersFunctionPause
(b []byte)
command/misc.go:179
↓ 1 callersFunctionPowershellImport
(b []byte)
command/unixImpl.go:62
↓ 1 callersFunctionRemove
CS original impl, use goroutine is much easier, and this impl also can't solve the race condition in other goroutine func CheckDownload() { for i, do
command/fileSystem.go:282
↓ 1 callersFunctionRev2self
()
command/unixImpl.go:50
↓ 1 callersFunctionRsaEncrypt
(origData []byte)
util/rsa.go:13
↓ 1 callersFunctionRun
(b []byte)
command/exec_generic.go:9
↓ 1 callersFunctionRunAs
(b []byte)
command/unixImpl.go:38
↓ 1 callersFunctionSleep
()
command/misc.go:175
↓ 1 callersFunctionStealToken
(b []byte)
command/unixImpl.go:46
↓ 1 callersFunctionTimeStomp
(b []byte)
command/fileSystem.go:365
↓ 1 callersFunctionTimeStompImpl
(b []byte)
command/unixImpl.go:83
↓ 1 callersFunctionWebDelivery
(b []byte)
command/unixImpl.go:65
↓ 1 callersFunctioncodepageToUTF8Native
but use this version will need to add two empty function for linux/darwin
packet/charset.go:49
↓ 1 callersFunctiondnsQueryTXT
dnsQueryTXT send dns TXT query
packet/dns.go:53
↓ 1 callersFunctionexecAsmGo
(b []byte)
command/lateralMovement.go:127
↓ 1 callersFunctionexecAsmInject
(b []byte, isDllX64 bool, ignoreToken bool)
command/lateralMovement.go:77
↓ 1 callersFunctionexecNative
(b []byte)
command/exec_windows.go:280
↓ 1 callersFunctiongetSpawnProcessX64
()
command/job.go:223
↓ 1 callersFunctiongetSpawnProcessX86
you should ensure x86 shellcode inject to x86 process
command/job.go:206
↓ 1 callersFunctionjoin
(src io.ReadWriteCloser, dst io.ReadWriteCloser)
command/port_forward.go:14
↓ 1 callersFunctionlistDrivesImpl
(b []byte)
command/unixImpl.go:69
↓ 1 callersFunctionlistThread
(pid uint32)
command/job.go:255
↓ 1 callersFunctionparseCommandCopy
(b []byte)
command/misc.go:113
↓ 1 callersFunctionparseCommandUpload
(b []byte)
command/misc.go:97
↓ 1 callersFunctionparseGetPrivs
(b []byte)
command/misc.go:83
↓ 1 callersFunctionparseInject
(b []byte)
command/misc.go:146
↓ 1 callersFunctionparseMakeToken
(b []byte)
command/misc.go:121
↓ 1 callersFunctionparseRunAs
(b []byte)
command/misc.go:137
↓ 1 callersFunctionportForwardServe
(port string, target string)
command/port_forward.go:35
↓ 1 callersFunctionportForwardStop
(port string)
command/port_forward.go:62
↓ 1 callersFunctionreadNamedPipe
(j job)
command/job.go:427
↓ 1 callersFunctionreadPipe
(hRPipe windows.Handle)
command/exec_windows.go:251
↓ 1 callersFunctionremoveJob
(jid int)
command/job.go:416
↓ 1 callersFunctionresolveServerResponse
extract payload
packet/http.go:122
↓ 1 callersFunctionrunImpl
implement of run and shell cmd
command/exec_unix.go:29
↓ 1 callersFunctionrunNative
call windowsAPI CreateProcess, when it's cmd `shell`, %COMSPEC% will be the path and cmd run doesn't give path, as set path to null and args as comman
command/exec_windows.go:146
FunctionDeleteSelfImpl
put some other windows function implement here temporary
command/exec_windows.go:19
FunctionEncryptPacket
()
packet/packet.go:94
FunctionErrorf
(format string, a ...any)
util/log.go:26
FunctionExec
(b []byte)
command/exec_windows.go:127
FunctionExecAsm
it seems that some user custom plugins will use ExecAsm to inject dll, maybe because normal inject dll doesn't accept args? use Go to execute C#, and
command/lateralMovement.go:54
FunctionGetCodePageANSI
IMPORTANT!!! charset is very important in beacon and server's communication because go handle string as utf8, so all use utf8 should be a better choic
sysinfo/sysinfo_windows.go:215
FunctionGetCodePageANSI
charset, refer https://xz.aliyun.com/t/11055
sysinfo/sysinfo_linux.go:93
FunctionGetCodePageOEM
()
sysinfo/sysinfo_windows.go:230
FunctionGetCodePageOEM
()
sysinfo/sysinfo_linux.go:101
FunctionGetOSVersion
()
sysinfo/sysinfo_windows.go:64
FunctionGetOSVersion
()
sysinfo/sysinfo_linux.go:34
FunctionGetOSVersion41Plus
()
sysinfo/sysinfo_windows.go:73
FunctionGetOSVersion41Plus
()
sysinfo/sysinfo_linux.go:43
FunctionGetPrivsByte
(b []byte)
command/token.go:109
FunctionGetProcessArch
(pid uint32)
sysinfo/sysinfo_windows.go:130
FunctionGetProcessArch
just assume 64bit linux only run 64bit app
sysinfo/sysinfo_linux.go:54
FunctionGetProcessSessionId
(pid int32)
sysinfo/sysinfo_windows.go:155
FunctionGetProcessSessionId
just return 0
sysinfo/sysinfo_linux.go:63
FunctionGetUsername
()
sysinfo/sysinfo_windows.go:197
FunctionGetUsername
()
sysinfo/sysinfo_linux.go:108
FunctionHandlerJobAsync
(b []byte)
command/unixImpl.go:26
FunctionInjectDll
put unsupported func in linux and darwin here
command/unixImpl.go:18
FunctionIsHighPriv
()
sysinfo/sysinfo_windows.go:82
FunctionIsOSX64
()
sysinfo/sysinfo_windows.go:119
FunctionIsProcessX64
maybe use GO_ARCH to judge self process is a better choice? only consider some common arch now
sysinfo/sysinfo_windows.go:166
FunctionKillJob
(b []byte)
command/unixImpl.go:34
FunctionListJobs
()
command/unixImpl.go:30
FunctionMakeToken
TODO it seems this func didn't work
command/token.go:175
FunctionPowershellImport
(b []byte)
command/lateralMovement.go:21
FunctionPrint
(a ...any)
util/log.go:8
FunctionRev2self
always remember to release handle
command/token.go:123
FunctionRsaDecrypt
(origData []byte)
util/rsa.go:27
FunctionRunAs
TODO calling createProcessWithLogonW will generate a strange error, maybe should try LogonUserA
command/token.go:196
FunctionSpawnAndInjectDll
(dll []byte, isDllX64 bool, ignoreToken bool)
command/unixImpl.go:22
FunctionStealToken
(b []byte)
command/token.go:128
FunctionTimeStompImpl
(b []byte)
command/exec_windows.go:47
FunctionWebDelivery
(b []byte)
command/lateralMovement.go:25
FunctioncodepageToUTF8Native
as linux and darwin default use utf8, there is no need to handle them again
packet/unsupport.go:6
FunctiondnsQueryAAAA
(host string)
packet/dns.go:98
Functioninit
init system info here
sysinfo/sysinfo_windows.go:56
Functioninit
init was called at beginning of the package
packet/http.go:21
Functioninit
()
packet/dns.go:29
FunctionlistDrivesImpl
(b []byte)
command/exec_windows.go:36
Functionmain
()
main.go:17
FunctionrunImpl
* Run this function should handler both `shell` and `run` cmd, need to return the result shell would send a payload like `%COMSPEC% /C cmd`,%COMSPEC
command/exec_windows.go:83
← previous101–187 of 187, ranked by callers