1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-16 01:21:15 +02:00

Update msfcli to use HasActions

This commit is contained in:
William Vu 2014-10-13 10:24:05 -05:00
parent a04ad3aa8c
commit 6ffe0807af
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024

4
msfcli
View File

@ -49,7 +49,7 @@ class Msfcli
tbl << ['(I)DS Evasion', 'Show available ids evasion options for this module']
tbl << ['(P)ayloads', 'Show available payloads for this module']
tbl << ['(T)argets', 'Show available targets for this exploit module']
tbl << ['(AC)tions', 'Show available actions for this auxiliary module']
tbl << ['(AC)tions', 'Show available actions for this module']
tbl << ['(C)heck', 'Run the check routine of the selected module']
tbl << ['(E)xecute', 'Execute the selected module']
@ -513,7 +513,7 @@ class Msfcli
show_targets(modules)
end
when "ac"
if modules[:module].file_path =~ /auxiliary\//i
if modules[:module].kind_of?(Msf::Module::HasActions)
show_actions(modules)
else
$stdout.puts("\nError: This type of module does not support actions")