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
↓ 1 callers
Function
MakeMetaInfo
()
packet/packet.go:178
↓ 1 callers
Function
MakeMetaInfo4plus
* 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 callers
Function
MakePacket
MakePacket make reply command, return AES encoded data
packet/packet.go:122
↓ 1 callers
Function
MakeToken
(b []byte)
command/unixImpl.go:54
↓ 1 callers
Function
MoveFile
(b []byte)
command/fileSystem.go:293
↓ 1 callers
Function
ParsePacket
(buf *bytes.Buffer, totalLen *uint32)
packet/packet.go:98
↓ 1 callers
Function
Pause
(b []byte)
command/misc.go:179
↓ 1 callers
Function
PowershellImport
(b []byte)
command/unixImpl.go:62
↓ 1 callers
Function
Remove
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 callers
Function
Rev2self
()
command/unixImpl.go:50
↓ 1 callers
Function
RsaEncrypt
(origData []byte)
util/rsa.go:13
↓ 1 callers
Function
Run
(b []byte)
command/exec_generic.go:9
↓ 1 callers
Function
RunAs
(b []byte)
command/unixImpl.go:38
↓ 1 callers
Function
Sleep
()
command/misc.go:175
↓ 1 callers
Function
StealToken
(b []byte)
command/unixImpl.go:46
↓ 1 callers
Function
TimeStomp
(b []byte)
command/fileSystem.go:365
↓ 1 callers
Function
TimeStompImpl
(b []byte)
command/unixImpl.go:83
↓ 1 callers
Function
WebDelivery
(b []byte)
command/unixImpl.go:65
↓ 1 callers
Function
codepageToUTF8Native
but use this version will need to add two empty function for linux/darwin
packet/charset.go:49
↓ 1 callers
Function
dnsQueryTXT
dnsQueryTXT send dns TXT query
packet/dns.go:53
↓ 1 callers
Function
execAsmGo
(b []byte)
command/lateralMovement.go:127
↓ 1 callers
Function
execAsmInject
(b []byte, isDllX64 bool, ignoreToken bool)
command/lateralMovement.go:77
↓ 1 callers
Function
execNative
(b []byte)
command/exec_windows.go:280
↓ 1 callers
Function
getSpawnProcessX64
()
command/job.go:223
↓ 1 callers
Function
getSpawnProcessX86
you should ensure x86 shellcode inject to x86 process
command/job.go:206
↓ 1 callers
Function
join
(src io.ReadWriteCloser, dst io.ReadWriteCloser)
command/port_forward.go:14
↓ 1 callers
Function
listDrivesImpl
(b []byte)
command/unixImpl.go:69
↓ 1 callers
Function
listThread
(pid uint32)
command/job.go:255
↓ 1 callers
Function
parseCommandCopy
(b []byte)
command/misc.go:113
↓ 1 callers
Function
parseCommandUpload
(b []byte)
command/misc.go:97
↓ 1 callers
Function
parseGetPrivs
(b []byte)
command/misc.go:83
↓ 1 callers
Function
parseInject
(b []byte)
command/misc.go:146
↓ 1 callers
Function
parseMakeToken
(b []byte)
command/misc.go:121
↓ 1 callers
Function
parseRunAs
(b []byte)
command/misc.go:137
↓ 1 callers
Function
portForwardServe
(port string, target string)
command/port_forward.go:35
↓ 1 callers
Function
portForwardStop
(port string)
command/port_forward.go:62
↓ 1 callers
Function
readNamedPipe
(j job)
command/job.go:427
↓ 1 callers
Function
readPipe
(hRPipe windows.Handle)
command/exec_windows.go:251
↓ 1 callers
Function
removeJob
(jid int)
command/job.go:416
↓ 1 callers
Function
resolveServerResponse
extract payload
packet/http.go:122
↓ 1 callers
Function
runImpl
implement of run and shell cmd
command/exec_unix.go:29
↓ 1 callers
Function
runNative
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
Function
DeleteSelfImpl
put some other windows function implement here temporary
command/exec_windows.go:19
Function
EncryptPacket
()
packet/packet.go:94
Function
Errorf
(format string, a ...any)
util/log.go:26
Function
Exec
(b []byte)
command/exec_windows.go:127
Function
ExecAsm
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
Function
GetCodePageANSI
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
Function
GetCodePageANSI
charset, refer https://xz.aliyun.com/t/11055
sysinfo/sysinfo_linux.go:93
Function
GetCodePageOEM
()
sysinfo/sysinfo_windows.go:230
Function
GetCodePageOEM
()
sysinfo/sysinfo_linux.go:101
Function
GetOSVersion
()
sysinfo/sysinfo_windows.go:64
Function
GetOSVersion
()
sysinfo/sysinfo_linux.go:34
Function
GetOSVersion41Plus
()
sysinfo/sysinfo_windows.go:73
Function
GetOSVersion41Plus
()
sysinfo/sysinfo_linux.go:43
Function
GetPrivsByte
(b []byte)
command/token.go:109
Function
GetProcessArch
(pid uint32)
sysinfo/sysinfo_windows.go:130
Function
GetProcessArch
just assume 64bit linux only run 64bit app
sysinfo/sysinfo_linux.go:54
Function
GetProcessSessionId
(pid int32)
sysinfo/sysinfo_windows.go:155
Function
GetProcessSessionId
just return 0
sysinfo/sysinfo_linux.go:63
Function
GetUsername
()
sysinfo/sysinfo_windows.go:197
Function
GetUsername
()
sysinfo/sysinfo_linux.go:108
Function
HandlerJobAsync
(b []byte)
command/unixImpl.go:26
Function
InjectDll
put unsupported func in linux and darwin here
command/unixImpl.go:18
Function
IsHighPriv
()
sysinfo/sysinfo_windows.go:82
Function
IsOSX64
()
sysinfo/sysinfo_windows.go:119
Function
IsProcessX64
maybe use GO_ARCH to judge self process is a better choice? only consider some common arch now
sysinfo/sysinfo_windows.go:166
Function
KillJob
(b []byte)
command/unixImpl.go:34
Function
ListJobs
()
command/unixImpl.go:30
Function
MakeToken
TODO it seems this func didn't work
command/token.go:175
Function
PowershellImport
(b []byte)
command/lateralMovement.go:21
Function
Print
(a ...any)
util/log.go:8
Function
Rev2self
always remember to release handle
command/token.go:123
Function
RsaDecrypt
(origData []byte)
util/rsa.go:27
Function
RunAs
TODO calling createProcessWithLogonW will generate a strange error, maybe should try LogonUserA
command/token.go:196
Function
SpawnAndInjectDll
(dll []byte, isDllX64 bool, ignoreToken bool)
command/unixImpl.go:22
Function
StealToken
(b []byte)
command/token.go:128
Function
TimeStompImpl
(b []byte)
command/exec_windows.go:47
Function
WebDelivery
(b []byte)
command/lateralMovement.go:25
Function
codepageToUTF8Native
as linux and darwin default use utf8, there is no need to handle them again
packet/unsupport.go:6
Function
dnsQueryAAAA
(host string)
packet/dns.go:98
Function
init
init system info here
sysinfo/sysinfo_windows.go:56
Function
init
init was called at beginning of the package
packet/http.go:21
Function
init
()
packet/dns.go:29
Function
listDrivesImpl
(b []byte)
command/exec_windows.go:36
Function
main
()
main.go:17
Function
runImpl
* 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
← previous
101–187 of 187, ranked by callers