From ce27277df1bbe3ee42f03bfd2e67f6108309b2fb Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Thu, 15 Dec 2005 05:07:14 +0000 Subject: [PATCH] msfcli displays exploits now git-svn-id: file:///home/svn/incoming/trunk@3237 4d416f70-5f16-0410-b530-b9f4589650da --- msfcli | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/msfcli b/msfcli index 3cfb0ab4bc..ad8ace0dd0 100755 --- a/msfcli +++ b/msfcli @@ -17,7 +17,16 @@ Indent = ' ' $framework = Msf::Simple::Framework.create if (ARGV.length <= 1) - $stderr.puts("\n" + " Usage: #{$0} [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} [var=val] [MODE]\n\n" + tbl.to_s + "\n") exit end