Skip to content

Commit ab64c42

Browse files
committed
Merge remote-tracking branch 'kernelsmith/RM7676-migrate-h' into rapid7
2 parents 70c8296 + 4728a59 commit ab64c42

File tree

1 file changed

+4
-1
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+4
-1
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,11 @@ def cmd_migrate_help
329329
#
330330
# Migrates the server to the supplied process identifier.
331331
#
332+
# @param args [Array<String>] Commandline arguments, only -h or a pid
333+
# @return [void]
334+
332335
def cmd_migrate(*args)
333-
if (args.length == 0)
336+
if ( args.length == 0 or args.include?("-h") )
334337
cmd_migrate_help
335338
return true
336339
end

0 commit comments

Comments
 (0)