Skip to content

Commit 346ea40

Browse files
author
Brent Cook
committed
fix some alignment, add usage
1 parent 06cc759 commit 346ea40

File tree

1 file changed

+11
-9
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi

1 file changed

+11
-9
lines changed

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,15 @@ def cmd_ps(*args)
429429
# Parse opts
430430
@@ps_opts.parse(args) { |opt, idx, val|
431431
case opt
432-
when '-S'
433-
search_term = val
434-
if search_term.nil?
435-
print_error("Enter a search term")
436-
return true
437-
end
438-
when '-h'
439-
cmd_ps_help
440-
return 0
432+
when '-S'
433+
search_term = val
434+
if search_term.nil?
435+
print_error("Enter a search term")
436+
return true
437+
end
438+
when '-h'
439+
cmd_ps_help
440+
return true
441441
when "-A"
442442
print_line "Filtering on arch..."
443443
searched_procs = Rex::Post::Meterpreter::Extensions::Stdapi::Sys::ProcessList.new
@@ -510,6 +510,8 @@ def cmd_ps(*args)
510510
end
511511

512512
def cmd_ps_help
513+
print_line "Usage: ps [ options ]"
514+
print_line
513515
print_line "Use the command with no arguments to see all running processes."
514516
print_line "The following options can be used to filter those results:"
515517

0 commit comments

Comments
 (0)