Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Z3ratu1/geacon_plus
/ functions
Functions
187 in github.com/Z3ratu1/geacon_plus
⨍
Functions
187
◇
Types & classes
4
↓ 80 callers
Function
Sprintf
seems no need to implement sprintf?
util/log.go:31
↓ 32 callers
Function
PushResult
(callBack int, b []byte)
packet/packet.go:366
↓ 18 callers
Function
Printf
(format string, a ...any)
util/log.go:14
↓ 18 callers
Function
parseAnArg
(buf *bytes.Buffer)
command/misc.go:69
↓ 15 callers
Function
ErrorMessage
(err string)
packet/packet.go:396
↓ 14 callers
Function
Println
(a ...any)
util/log.go:20
↓ 12 callers
Function
BytesCombine
(pBytes ...[]byte)
util/util.go:12
↓ 11 callers
Function
ReadInt
(buf *bytes.Buffer)
packet/packet.go:74
↓ 8 callers
Function
ReadShort
(buf *bytes.Buffer)
packet/packet.go:80
↓ 7 callers
Function
Sleep
()
util/util.go:125
↓ 6 callers
Function
WriteInt
(nInt int)
packet/packet.go:68
↓ 5 callers
Function
dnsQueryA
(host string)
packet/dns.go:75
↓ 4 callers
Function
EncryptField
ALL USE BYTE!!! encrypt should not trigger error, this function does not modify input data encode/decode deployment can be found at c2profile.Program
util/util.go:46
↓ 4 callers
Function
ExecAsm
(b []byte, isDllX64 bool, ignoreToken bool)
command/unixImpl.go:58
↓ 4 callers
Function
SpawnAndInjectDll
(dll []byte, isDllX64 bool, ignoreToken bool)
command/job.go:167
↓ 4 callers
Function
createProcessNative
if there is a token, use it to create new process
command/exec_windows.go:292
↓ 4 callers
Function
updateCurrentHandle
however, some cmd like shinject and dllinject will simply inject process, but doesn't send job handler. so I should close handle in InjectDll, above c
command/job.go:61
↓ 3 callers
Function
CheckIn
(metadata []byte)
packet/dns.go:120
↓ 3 callers
Function
Exec
(b []byte)
command/exec_unix.go:13
↓ 3 callers
Function
GetUsername
()
sysinfo/sysinfo_darwin.go:79
↓ 3 callers
Function
closeToken
always close handle, no matter it is invalid or not
command/token.go:49
↓ 3 callers
Function
createRemoteThread
(processHandle windows.Handle, offset uint32, shellcode []byte, args []byte)
command/job.go:304
↓ 3 callers
Function
injectSelf
(shellcode []byte, offset uint32, args []byte)
command/job.go:120
↓ 3 callers
Function
loopRead
this func read from pipe and send result back to server
command/exec_windows.go:198
↓ 3 callers
Function
parseCommandMove
can also be used on Copy
command/misc.go:106
↓ 3 callers
Function
parseCommandShell
(b []byte)
command/misc.go:129
↓ 3 callers
Function
parseExecAsm
(b []byte)
command/misc.go:155
↓ 2 callers
Function
DNSPost
DNSPost post result to server
packet/dns.go:214
↓ 2 callers
Function
DecryptField
DecryptField decode data with reversed decryptTypes
util/util.go:81
↓ 2 callers
Function
DeleteSelf
()
command/misc.go:200
↓ 2 callers
Function
DnsGet
fetch command
packet/dns.go:127
↓ 2 callers
Function
DnsGetA
DnsGetA fetch command with DNS A query
packet/dns.go:162
↓ 2 callers
Function
DnsGetAAAA
fetch command with DNS AAAA query
packet/dns.go:204
↓ 2 callers
Function
DnsGetTXT
DnsGetTXT fetch command with DNS TXT query
packet/dns.go:173
↓ 2 callers
Function
GeaconID
()
sysinfo/meta.go:22
↓ 2 callers
Function
GetCodePageANSI
()
sysinfo/sysinfo_darwin.go:64
↓ 2 callers
Function
GetCodePageOEM
()
sysinfo/sysinfo_darwin.go:72
↓ 2 callers
Function
GetComputerName
()
sysinfo/meta.go:59
↓ 2 callers
Function
GetMagicHead
()
sysinfo/meta.go:115
↓ 2 callers
Function
GetMetaDataFlag
()
sysinfo/meta.go:71
↓ 2 callers
Function
GetPID
()
sysinfo/meta.go:53
↓ 2 callers
Function
GetProcessArch
simply assume 64bit mac only run 64bit app
sysinfo/sysinfo_darwin.go:51
↓ 2 callers
Function
GetProcessName
()
sysinfo/meta.go:34
↓ 2 callers
Function
HttpGet
HttpGet need to handler c2profile here, data is raw rsa encrypted meta info
packet/http.go:86
↓ 2 callers
Function
InjectDll
implement of beacon.Job
command/job.go:67
↓ 2 callers
Function
IsOSX64
()
sysinfo/sysinfo_linux.go:76
↓ 2 callers
Function
IsProcessX64
()
sysinfo/sysinfo_darwin.go:43
↓ 2 callers
Function
NetbiosDecode
(data []byte, key byte)
util/util.go:34
↓ 2 callers
Function
NetbiosEncode
(data []byte, key byte)
util/util.go:23
↓ 2 callers
Function
PaddingWithA
(rawData []byte)
util/aes.go:26
↓ 2 callers
Function
PullCommand
()
packet/packet.go:349
↓ 2 callers
Function
RandomAESKey
()
util/rand.go:11
↓ 2 callers
Function
RandomInt
(min, max int)
util/rand.go:7
↓ 2 callers
Function
RunAsync
(cmd *exec.Cmd)
command/unixImpl.go:91
↓ 2 callers
Function
TimeCheck
(current time.Time)
command/misc.go:186
↓ 2 callers
Function
Upload
(b []byte, start bool)
command/fileSystem.go:21
↓ 2 callers
Function
WritePacketLen
(b []byte)
packet/packet.go:63
↓ 2 callers
Function
XOR
(text []byte, key []byte)
util/util.go:16
↓ 2 callers
Function
arrayToString
(x [65]int8)
sysinfo/sysinfo_linux.go:13
↓ 2 callers
Function
callUserAPC
copy from GolangBypassAV EarlyBird
command/job.go:276
↓ 2 callers
Function
getPrivs
(privs []string)
command/token.go:60
↓ 2 callers
Function
getUname
()
sysinfo/sysinfo_linux.go:25
↓ 2 callers
Function
makeTokenNative
(domain []byte, username []byte, password []byte)
command/token.go:162
↓ 2 callers
Function
parseTimeStomp
(b []byte)
command/misc.go:117
↓ 2 callers
Function
randomID
()
packet/dns.go:38
↓ 2 callers
Function
spawnTempProcess
(procInfo *windows.ProcessInformation, startupInfo *windows.StartupInfo, isX64 bool, ignoreToken bool)
command/job.go:240
↓ 1 callers
Function
AesCBCDecrypt
(encryptData []byte, key []byte)
util/aes.go:47
↓ 1 callers
Function
AesCBCEncrypt
(rawData []byte, key []byte)
util/aes.go:35
↓ 1 callers
Function
Cancel
(b []byte)
command/fileSystem.go:241
↓ 1 callers
Function
ChangeCurrentDir
(path []byte)
command/fileSystem.go:49
↓ 1 callers
Function
ChangeSleep
(b []byte)
command/misc.go:166
↓ 1 callers
Function
CopyFile
(b []byte)
command/fileSystem.go:307
↓ 1 callers
Function
DecryptPacket
(b []byte)
packet/packet.go:86
↓ 1 callers
Function
DeleteSelfImpl
()
command/unixImpl.go:73
↓ 1 callers
Function
Download
(b []byte)
command/fileSystem.go:177
↓ 1 callers
Function
EncryptedMetaInfo
EncryptedMetaInfo return raw rsa encrypted data
packet/packet.go:164
↓ 1 callers
Function
FileBrowse
(b []byte)
command/fileSystem.go:68
↓ 1 callers
Function
FirstBlood
()
packet/packet.go:329
↓ 1 callers
Function
GetCurrentDirectory
()
command/fileSystem.go:58
↓ 1 callers
Function
GetLocalIP
()
sysinfo/meta.go:86
↓ 1 callers
Function
GetLocalIPInt
()
sysinfo/meta.go:99
↓ 1 callers
Function
GetNetworkInformation
(b []byte)
command/network.go:11
↓ 1 callers
Function
GetOSVersion
()
sysinfo/sysinfo_darwin.go:12
↓ 1 callers
Function
GetOSVersion41Plus
()
sysinfo/sysinfo_darwin.go:18
↓ 1 callers
Function
GetPrivsByte
(b []byte)
command/unixImpl.go:42
↓ 1 callers
Function
GetProcessSessionId
just return 0
sysinfo/sysinfo_darwin.go:60
↓ 1 callers
Function
HandlerJobAsync
(b []byte)
command/job.go:352
↓ 1 callers
Function
HmacHash
(encrytedBytes []byte)
util/aes.go:66
↓ 1 callers
Function
HttpPost
HttpPost seems post response is no need to deal with need to handler c2profile here
packet/http.go:45
↓ 1 callers
Function
IPXor
(ip net.IP, mask net.IP)
packet/dns.go:44
↓ 1 callers
Function
IsHighPriv
()
sysinfo/sysinfo_darwin.go:24
↓ 1 callers
Function
IsHighPriv
()
sysinfo/sysinfo_linux.go:67
↓ 1 callers
Function
IsOSX64
()
sysinfo/sysinfo_darwin.go:33
↓ 1 callers
Function
IsProcessX64
seems use go arch to judge is a good idea
sysinfo/sysinfo_linux.go:85
↓ 1 callers
Function
KillJob
(b []byte)
command/job.go:404
↓ 1 callers
Function
KillProcess
(b []byte)
command/proc.go:46
↓ 1 callers
Function
ListDrives
(b []byte)
command/fileSystem.go:360
↓ 1 callers
Function
ListJobs
()
command/job.go:395
↓ 1 callers
Function
ListProcess
(pendingRequest []byte)
command/proc.go:13
↓ 1 callers
Function
MakeDir
(dir string)
command/fileSystem.go:351
next →
1–100 of 187, ranked by callers