mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
msfcli displays exploits now
git-svn-id: file:///home/svn/incoming/trunk@3237 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
b4e6c2a64e
commit
ce27277df1
11
msfcli
11
msfcli
@ -17,7 +17,16 @@ Indent = ' '
|
||||
$framework = Msf::Simple::Framework.create
|
||||
|
||||
if (ARGV.length <= 1)
|
||||
$stderr.puts("\n" + " Usage: #{$0} <exploit> [var=val] [MODE]\n\n")
|
||||
tbl = Rex::Ui::Text::Table.new(
|
||||
'Header' => 'Exploits',
|
||||
'Indent' => 4,
|
||||
'Columns' => [ 'Name', 'Description' ])
|
||||
|
||||
$framework.exploits.each_module { |name, mod|
|
||||
tbl << [ name, mod.new.name ]
|
||||
}
|
||||
|
||||
$stderr.puts("\n" + " Usage: #{$0} <exploit> [var=val] [MODE]\n\n" + tbl.to_s + "\n")
|
||||
exit
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user