Skip to content

Commit b2005e7

Browse files
committed
Single char args multiscript
1 parent 6067e94 commit b2005e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/meterpreter/multiscript.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
@@exec_opts = Rex::Parser::Arguments.new(
1717
"-h" => [ false,"Help menu." ],
18-
"-cl" => [ true,"Collection of scripts to execute. Each script command must be enclosed in double quotes and separated by a semicolon."],
19-
"-rc" => [ true,"Text file with list of commands, one per line."]
18+
"-c" => [ true,"Collection of scripts to execute. Each script command must be enclosed in double quotes and separated by a semicolon."],
19+
"-r" => [ true,"Text file with list of commands, one per line."]
2020
)
2121
#Setting Argument variables
2222
commands = ""
@@ -53,9 +53,9 @@ def usage
5353
@@exec_opts.parse(args) do |opt, idx, val|
5454
case opt
5555

56-
when "-cl"
56+
when "-c"
5757
commands = val.gsub(/;/,"\n")
58-
when "-rc"
58+
when "-r"
5959
script = val
6060
if not ::File.exist?(script)
6161
raise "Script List File does not exists!"

0 commit comments

Comments
 (0)