chrismaddalena / Mythic_CLI

Golang CLI binaries to replace the bash scripts controlling Mythic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mythic_CLI

Golang code for the mythic-cli binary in Mythic. This binary provides control for various aspects of Mythic configuration.

mythic-cli help

mythic-cli usage ( v 0.0.5 ):
*************************************************************
*** source code: https://github.com/MythicMeta/Mythic_CLI ***
*************************************************************
  help
  mythic {start|stop} [service name...]
  start | restart
    Stops and Starts all of Mythic - alias for 'mythic start'
  stop
    Stop all of Mythic - alias for 'mythic stop'
  c2 {start|stop|add|remove|list} [c2profile ...]
      The add/remove subcommands adjust the docker-compose file, not manipulate files on disk
         to manipulate files on disk, use 'install' and 'uninstall' commands
  payload {start|stop|add|remove|list} [payloadtype ...]
      The add/remove subcommands adjust the docker-compose file, not manipulate files on disk
         to manipulate files on disk, use 'install' and 'uninstall' commands
  config
      *no parameters will dump the entire config*
      get [varname ...]
      set <var name> <var value>
      payload (dump out remote payload configuration variables)
      c2 (dump out remote c2 configuration variables)
  database reset
  install 
      github <url> [branch name] [-f]
      folder <path to folder> [-f]
      -f forces the removal of the currently installed version and overwrites with the new, otherwise will prompt you
         * this command will manipulate files on disk and update docker-compose
  uninstall {name1 name2 name2 ...}
      (this command removes the payload or c2 profile from disk and updates docker-compose)
  status
  logs <container name>
  mythic_sync
      install github [url] [branch name]
         * if no url is provided, https://github.com/GhostManager/mythic_sync will be used
      install folder <path to folder>
      uninstall
  version

Compilation

The binary distributed with Mythic is compiled with go build -ldflags="-s -w" -o mythic-cli main.go and then passed through upx with upx --brute mythic-cli. This is simply so that the standard 13MB Golang file is compressed down to a 2.5MB file for easier inclusion with the Mythic repo.

Version

The current version of the mythic-cli code is 0.0.5

About

Golang CLI binaries to replace the bash scripts controlling Mythic

License:Other


Languages

Language:Go 100.0%