Skip to content

Commit

Permalink
Fix menus for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Mar 3, 2018
1 parent 1ebd92d commit 49667fe
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ func getCompleter(completer string) *readline.PrefixCompleter {

// Module Menu
var module = readline.NewPrefixCompleter(
readline.PcItem("back"),
readline.PcItem("help"),
readline.PcItem("main"),
readline.PcItem("run"),
readline.PcItem("show",
readline.PcItem("options"),
Expand Down Expand Up @@ -400,18 +403,18 @@ func menuHelpMain() {
table := tablewriter.NewWriter(os.Stdout)
table.SetAlignment(tablewriter.ALIGN_LEFT)
table.SetBorder(false)
table.SetHeader([]string{"Command", "Options", "Description"})
table.SetHeader([]string{"Command", "Description", "Options"})

data := [][]string{
{"agent", "Interact, list", "Interact with agents or list agents"},
{"banner", "", "Print the Merlin banner"},
{"exit", "", "Exit and close the Merlin server"},
{"interact", "", "Interact with an agent. Alias for Empire users"},
{"quit", "", "Exit and close the Merlin server"},
{"sessions", "", "List all agents session information. Alias for MSF users"},
{"use", "module", "Use a function of Merlin"},
{"version", "", "Print the Merlin server version"},
{"*", "", "Anything else will be execute on the host operating system"},
{"agent", "Interact with agents or list agents", "interact, list"},
{"banner", "Print the Merlin banner", ""},
{"exit", "Exit and close the Merlin server", ""},
{"interact", "Interact with an agent. Alias for Empire users", ""},
{"quit", "Exit and close the Merlin server", ""},
{"sessions", "List all agents session information. Alias for MSF users", ""},
{"use", "Use a function of Merlin", "module"},
{"version", "Print the Merlin server version", ""},
{"*", "Anything else will be execute on the host operating system", ""},
}

table.AppendBulk(data)
Expand Down

0 comments on commit 49667fe

Please sign in to comment.