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:
parent
573b339a08
commit
1afbd3da5f
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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 ##################
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue