Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawl3r/DaaC2
/ functions
Functions
33 in github.com/crawl3r/DaaC2
⨍
Functions
33
◇
Types & classes
3
↓ 1 callers
Function
SetStateMainMenu
SetStateMainMenu sets the Cli state back to "main"
pkg/cli/cli.go:209
↓ 1 callers
Function
getExternalIP
meh, it works
cmd/agent/main.go:237
↓ 1 callers
Function
handleCommand
(cmd string)
cmd/agent/main.go:171
↓ 1 callers
Function
handleShellcode
unix only for now?
cmd/agent/main.go:212
↓ 1 callers
Function
heartbeat
(dg *discordgo.Session, tick *time.Ticker)
cmd/agent/main.go:222
↓ 1 callers
Function
parseMessage
(message string)
cmd/agent/main.go:125
↓ 1 callers
Function
pingTheServer
Attempt to ping the server to let them know we are still alive and kicking. This will (in theory) remain persistent even if the server resets etc
cmd/agent/main.go:229
↓ 1 callers
Function
printAgentsInfo
()
pkg/cli/cli.go:184
↓ 1 callers
Function
printHelpAgentMenu
()
pkg/cli/cli.go:162
↓ 1 callers
Function
printHelpMainMenu
()
pkg/cli/cli.go:142
↓ 1 callers
Function
stringWithCharset
(length int, charset string)
pkg/util/util.go:12
Function
AddAgentToKnownTable
AddAgentToKnownTable adds the agent information to a global look up table
pkg/c2agents/c2agents.go:20
Function
CreateAndSendCommandMessage
functions to create and send certain messages. Not the smartest code I've ever written but w/e it works CreateAndSendCommandMessage is a some what "jo
pkg/c2agents/c2agents.go:62
Function
CreateAndSendKillMessage
CreateAndSendKillMessage sends a kill message for the target agent
pkg/c2agents/c2agents.go:80
Function
CreateAndSendShellcodeMessage
CreateAndSendShellcodeMessage sends raw shellcode to the agent to inject into the current process
pkg/c2agents/c2agents.go:73
Function
CreateNewMessage
CreateNewMessage builds our new message object and returns a pointer to this obj
pkg/c2message/c2message.go:28
Function
DoesAgentExistOnServer
DoesAgentExistOnServer gets called when a ping is received to make sure the agent is known by the server
pkg/c2agents/c2agents.go:49
Function
EncodeMessageObject
EncodeMessageObject takes a struct, json's it and then encodes in Base64, returning the b64 string
pkg/c2message/c2message.go:39
Function
InjectShellcode
InjectShellcode is called externally and passes through a byte array of raw shellcode
pkg/c2agent/exec.go:11
Function
InjectShellcode
(sc []byte)
pkg/c2agent/execwindows.go:21
Function
Kill
Kill on Linux
pkg/c2agent/exec.go:17
Function
Kill
Kill, todo on Windows
pkg/c2agent/execwindows.go:26
Function
RandomString
RandomString ...
pkg/util/util.go:21
Function
RemoveAgentFromKnownTable
RemoveAgentFromKnownTable finds the target agent and removes it from the known table
pkg/c2agents/c2agents.go:35
Function
Shell
Shell is the exported function to start the command line interface
pkg/cli/cli.go:25
Function
VirtualProtect
(lpAddress unsafe.Pointer, dwSize uintptr, flNewProtect uint32, lpflOldProtect unsafe.Pointer)
pkg/c2agent/execwindows.go:12
Function
filterInput
(r rune)
pkg/cli/cli.go:133
Function
init
()
cmd/server/main.go:20
Function
init
()
cmd/agent/main.go:28
Function
main
()
cmd/server/main.go:38
Function
main
()
cmd/agent/main.go:65
Function
messageCreate
This function will be called (due to AddHandler above) every time a new message is created on any channel that the autenticated bot has access to.
cmd/agent/main.go:110
Function
parseMessage
(s *discordgo.Session, m *discordgo.MessageCreate)
cmd/server/main.go:66