File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -429,15 +429,15 @@ def cmd_ps(*args)
429
429
# Parse opts
430
430
@@ps_opts . parse ( args ) { |opt , idx , val |
431
431
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
441
441
when "-A"
442
442
print_line "Filtering on arch..."
443
443
searched_procs = Rex ::Post ::Meterpreter ::Extensions ::Stdapi ::Sys ::ProcessList . new
@@ -510,6 +510,8 @@ def cmd_ps(*args)
510
510
end
511
511
512
512
def cmd_ps_help
513
+ print_line "Usage: ps [ options ]"
514
+ print_line
513
515
print_line "Use the command with no arguments to see all running processes."
514
516
print_line "The following options can be used to filter those results:"
515
517
You can’t perform that action at this time.
0 commit comments