print_status -> print_line in usage

git-svn-id: file:///home/svn/framework3/trunk@7361 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2009-11-05 00:38:05 +00:00
parent 573b339a08
commit 1afbd3da5f
4 changed files with 6 additions and 6 deletions

View File

@ -1,16 +1,16 @@
# $Id$
# credcollect - tebo[at]attackresearch.com
@@exec_opts = Rex::Parser::Arguments.new(
opts = Rex::Parser::Arguments.new(
"-h" => [ false,"Help menu." ]
)
@@exec_opts.parse(args) { |opt, idx, val|
opts.parse(args) { |opt, idx, val|
case opt
when "-h"
print_line("CredCollect -- harvest credentials found on the host and store them in the database")
print_line("USAGE: run credcollect")
print_status(@@exec_opts.usage)
print_line(opts.usage)
raise Rex::Script::Completed
end
}

View File

@ -59,7 +59,7 @@ end
def usage
print_line("Windows Multi Command Execution Meterpreter Script ")
print_status(@@exec_opts.usage)
print_line(@@exec_opts.usage)
end
################## Main ##################
@@exec_opts.parse(args) { |opt, idx, val|

View File

@ -35,7 +35,7 @@ end
def usage
print_line("Multi Script Execution Meterpreter Script ")
print_status(@@exec_opts.usage)
print_line(@@exec_opts.usage)
end
################## Main ##################

View File

@ -35,7 +35,7 @@ autoconn = false
opts.parse(args) do |opt, idx, val|
case opt
when "-h"
print_status(opts.usage)
print_line(opts.usage)
return
when "-r"
rhost = val