Skip to content

Commit 40313bf

Browse files
committed
Single char args multi_console_console_command
1 parent 83cd0bc commit 40313bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/meterpreter/multi_console_command.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
# Setting Arguments
1818
@@exec_opts = Rex::Parser::Arguments.new(
1919
"-h" => [ false,"Help menu." ],
20-
"-sl" => [ false,"Hide commands output for work in background sessions"],
21-
"-cl" => [ true,"Commands to execute. The command must be enclosed in double quotes and separated by a comma."],
22-
"-rc" => [ true,"Text file with list of commands, one per line."]
20+
"-s" => [ false,"Hide commands output for work in background sessions"],
21+
"-c" => [ true,"Commands to execute. The command must be enclosed in double quotes and separated by a comma."],
22+
"-r" => [ true,"Text file with list of commands, one per line."]
2323
)
2424

2525
commands = nil
@@ -36,9 +36,9 @@ def usage
3636
@@exec_opts.parse(args) { |opt, idx, val|
3737
case opt
3838

39-
when "-cl"
39+
when "-c"
4040
commands = val.split(",")
41-
when "-rc"
41+
when "-r"
4242
script = val
4343
if not ::File.exist?(script)
4444
raise "Command List File does not exists!"
@@ -51,7 +51,7 @@ def usage
5151

5252
when "-h"
5353
help = true
54-
when "-sl"
54+
when "-s"
5555
silence = true
5656
end
5757
}

0 commit comments

Comments
 (0)