Documentation ¶
Overview ¶
Package commands holds all the Mythic command logic for issuing, receiving, and processing commands to Merlin
Index ¶
- func Commands() (commands []structs.Command)
- func ConvertMerlinJobToMythicTask(job jobs.Command, jobType jobs.Type) (bytes string, err error)
- func GetFile(task *structs.PTTaskMessageAllData) (data []byte, filename string, err error)
- func GetFileByName(name string, callback int) (contents []byte, err error)
- func GetFileContents(fileID string) (contents []byte, err error)
- func GetFileList(msg structs.PTRPCDynamicQueryFunctionMessage) (files []string)
- func GetFileName(fileID string) (name string, err error)
- type Command
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMerlinJobToMythicTask ¶
ConvertMerlinJobToMythicTask takes in a Merlin jobs.Job structure and converts it to a Mythic Job structure
func GetFile ¶
func GetFile(task *structs.PTTaskMessageAllData) (data []byte, filename string, err error)
GetFile processes a Mythic task to retrieve a file and return its contents, filename, and any errors. The Mythic task must have a "filename" and "file" command arguments. The "filename" command argument references a file that has already been uploaded to Mythic. The "file" command argument reference is used when a new file was uploaded as part of the Mythic task.
func GetFileByName ¶
GetFileByName queries the Mythic server for files that match the passed in name argument and returns the contents of the first match
func GetFileContents ¶
GetFileContents retrieves the file content as bytes for the provided fileID string
func GetFileList ¶
func GetFileList(msg structs.PTRPCDynamicQueryFunctionMessage) (files []string)
GetFileList queries the Mythic server for files it knows about and returns a list of those Mythic file objects This function is used as a DynamicQuery to populate Mythic Command Parameter dropdown lists
func GetFileName ¶
GetFileName retrieves the file name for the provided fileID string
Types ¶
Source Files ¶
- cd.go
- commands.go
- createProcess.go
- donut.go
- download.go
- env.go
- executeAssembly.go
- executePE.go
- executeShellcode.go
- exit.go
- ifconfig.go
- invokeAssembly.go
- ja3.go
- killdate.go
- killprocess.go
- listAssembly.go
- loadAssembly.go
- ls.go
- makeToken.go
- maxRetry.go
- memfd.go
- memory.go
- mimikatz.go
- netstat.go
- nslookup.go
- parrot.go
- pipes.go
- ps.go
- pwd.go
- rev2self.go
- rm.go
- run.go
- runas.go
- sdelete.go
- shell.go
- skew.go
- sleep.go
- socks.go
- srdi.go
- ssh.go
- stealToken.go
- template.go
- timeStomp.go
- token.go
- upload.go
- uptime.go