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:
parent
a04ad3aa8c
commit
6ffe0807af
4
msfcli
4
msfcli
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user