Skip to content

Commit d0419cd

Browse files
committed
Single char args multicommand
1 parent 40313bf commit d0419cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/meterpreter/multicommand.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
# Setting Arguments
1717
@@exec_opts = Rex::Parser::Arguments.new(
1818
"-h" => [ false,"Help menu." ],
19-
"-cl" => [ true,"Commands to execute. The command must be enclosed in double quotes and separated by a comma."],
19+
"-c" => [ true,"Commands to execute. The command must be enclosed in double quotes and separated by a comma."],
2020
"-f" => [ true,"File where to saved output of command."],
21-
"-rc" => [ true,"Text file with list of commands, one per line."]
21+
"-r" => [ true,"Text file with list of commands, one per line."]
2222
)
2323
#Setting Argument variables
2424
commands = []
@@ -77,9 +77,9 @@ def usage
7777
@@exec_opts.parse(args) { |opt, idx, val|
7878
case opt
7979

80-
when "-cl"
80+
when "-c"
8181
commands = val.split(",")
82-
when "-rc"
82+
when "-r"
8383
script = val
8484
if not ::File.exist?(script)
8585
raise "Command List File does not exists!"

0 commit comments

Comments
 (0)