MCPcopy Create free account

hub / github.com/crawl3r/DaaC2 / functions

Functions33 in github.com/crawl3r/DaaC2

↓ 1 callersFunctionSetStateMainMenu
SetStateMainMenu sets the Cli state back to "main"
pkg/cli/cli.go:209
↓ 1 callersFunctiongetExternalIP
meh, it works
cmd/agent/main.go:237
↓ 1 callersFunctionhandleCommand
(cmd string)
cmd/agent/main.go:171
↓ 1 callersFunctionhandleShellcode
unix only for now?
cmd/agent/main.go:212
↓ 1 callersFunctionheartbeat
(dg *discordgo.Session, tick *time.Ticker)
cmd/agent/main.go:222
↓ 1 callersFunctionparseMessage
(message string)
cmd/agent/main.go:125
↓ 1 callersFunctionpingTheServer
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 callersFunctionprintAgentsInfo
()
pkg/cli/cli.go:184
↓ 1 callersFunctionprintHelpAgentMenu
()
pkg/cli/cli.go:162
↓ 1 callersFunctionprintHelpMainMenu
()
pkg/cli/cli.go:142
↓ 1 callersFunctionstringWithCharset
(length int, charset string)
pkg/util/util.go:12
FunctionAddAgentToKnownTable
AddAgentToKnownTable adds the agent information to a global look up table
pkg/c2agents/c2agents.go:20
FunctionCreateAndSendCommandMessage
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
FunctionCreateAndSendKillMessage
CreateAndSendKillMessage sends a kill message for the target agent
pkg/c2agents/c2agents.go:80
FunctionCreateAndSendShellcodeMessage
CreateAndSendShellcodeMessage sends raw shellcode to the agent to inject into the current process
pkg/c2agents/c2agents.go:73
FunctionCreateNewMessage
CreateNewMessage builds our new message object and returns a pointer to this obj
pkg/c2message/c2message.go:28
FunctionDoesAgentExistOnServer
DoesAgentExistOnServer gets called when a ping is received to make sure the agent is known by the server
pkg/c2agents/c2agents.go:49
FunctionEncodeMessageObject
EncodeMessageObject takes a struct, json's it and then encodes in Base64, returning the b64 string
pkg/c2message/c2message.go:39
FunctionInjectShellcode
InjectShellcode is called externally and passes through a byte array of raw shellcode
pkg/c2agent/exec.go:11
FunctionInjectShellcode
(sc []byte)
pkg/c2agent/execwindows.go:21
FunctionKill
Kill on Linux
pkg/c2agent/exec.go:17
FunctionKill
Kill, todo on Windows
pkg/c2agent/execwindows.go:26
FunctionRandomString
RandomString ...
pkg/util/util.go:21
FunctionRemoveAgentFromKnownTable
RemoveAgentFromKnownTable finds the target agent and removes it from the known table
pkg/c2agents/c2agents.go:35
FunctionShell
Shell is the exported function to start the command line interface
pkg/cli/cli.go:25
FunctionVirtualProtect
(lpAddress unsafe.Pointer, dwSize uintptr, flNewProtect uint32, lpflOldProtect unsafe.Pointer)
pkg/c2agent/execwindows.go:12
FunctionfilterInput
(r rune)
pkg/cli/cli.go:133
Functioninit
()
cmd/server/main.go:20
Functioninit
()
cmd/agent/main.go:28
Functionmain
()
cmd/server/main.go:38
Functionmain
()
cmd/agent/main.go:65
FunctionmessageCreate
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
FunctionparseMessage
(s *discordgo.Session, m *discordgo.MessageCreate)
cmd/server/main.go:66