Enhance the command auto-complete in aux.

GSoC/Meterpreter_Web_Console
Green-m 2018-12-21 18:03:57 +08:00
parent 0471d69c16
commit 06de47ce68
No known key found for this signature in database
GPG Key ID: 7A4A0E684B5D6747
1 changed files with 11 additions and 0 deletions

View File

@ -68,7 +68,17 @@ class Auxiliary
end end
end end
alias cmd_rerun_tabs cmd_run_tabs
alias cmd_rexploit cmd_rerun alias cmd_rexploit cmd_rerun
alias cmd_rexploit_tabs cmd_exploit_tabs
#
# Tab completion for the run command
#
def cmd_run_tabs(str, words)
return [] if words.length > 1
@@auxiliary_opts.fmt.keys
end
# #
# Executes an auxiliary module # Executes an auxiliary module
@ -147,6 +157,7 @@ class Auxiliary
end end
alias cmd_exploit cmd_run alias cmd_exploit cmd_run
alias cmd_exploit_tabs cmd_run_tabs
def cmd_run_help def cmd_run_help
print_line "Usage: run [options]" print_line "Usage: run [options]"