Skip to content

Commit 8e829ae

Browse files
committed
Land rapid7#8141, fix execute and kill cmd usage/help
2 parents df181c1 + ef53e6a commit 8e829ae

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/rex/parser/arguments.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def usage
7676
txt << " #{fmtspec.ljust(longest.length)}#{opt}#{val[1]}"
7777
end
7878

79+
txt << ""
7980
txt.join("\n")
8081
end
8182

lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,15 @@ def cmd_kill(*args)
371371
return true
372372
end
373373

374+
#
375+
# help for the kill command
376+
#
377+
def cmd_kill_help
378+
print_line("Usage: kill [pid1 [pid2 [pid3 ...]]] [-s]")
379+
print_line("Terminate one or more processes.")
380+
print_line(" -s Kills the pid associated with the current session.")
381+
end
382+
374383
#
375384
# Kills one or more processes by name.
376385
#

0 commit comments

Comments
 (0)