Mythic_CLI

command module
v0.0.0-...-213b980 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: BSD-3-Clause Imports: 30 Imported by: 0

README

Deprecated

This repository is deprecated as the Mythic_CLI source is now part of the main Mythic repository at https://github.com/its-a-feature/Mythic.

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.8 ):
*************************************************************
*** 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
  test
      test connectivity to RabbitMQ and the Mythic UI

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.7

Documentation

Overview

@author: its_a_feature_ This code is to administer Mythic 2.2.4+ configurations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL