Fix a issue that show help do not work.
parent
5ceece2dbc
commit
c3e7556b06
|
@ -1405,7 +1405,7 @@ class Console::CommandDispatcher::Core
|
||||||
# Executes a script in the context of the meterpreter session.
|
# Executes a script in the context of the meterpreter session.
|
||||||
#
|
#
|
||||||
def cmd_run(*args)
|
def cmd_run(*args)
|
||||||
if args.empty? || args.include?('-h')
|
if args.empty? || args.length == 1 && args.include?('-h')
|
||||||
cmd_run_help
|
cmd_run_help
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
@ -1475,7 +1475,7 @@ class Console::CommandDispatcher::Core
|
||||||
# Executes a script in the context of the meterpreter session in the background
|
# Executes a script in the context of the meterpreter session in the background
|
||||||
#
|
#
|
||||||
def cmd_bgrun(*args)
|
def cmd_bgrun(*args)
|
||||||
if args.empty? || args.include?('-h')
|
if args.empty? || args.length == 1 && args.include?('-h')
|
||||||
print_line('Usage: bgrun <script> [arguments]')
|
print_line('Usage: bgrun <script> [arguments]')
|
||||||
print_line
|
print_line
|
||||||
print_line('Executes a ruby script in the context of the meterpreter session.')
|
print_line('Executes a ruby script in the context of the meterpreter session.')
|
||||||
|
|
Loading…
Reference in New Issue