Skip to content
Browse files

Moved help text into cmd_findpids_help

  • Loading branch information...
1 parent 228a150 commit 71e57a6067da9146415bc3e6ba351b554e2de1ac @dmaloney-r7 dmaloney-r7 committed
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb
View
10 lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb
@@ -288,9 +288,7 @@ def cmd_ps(*args)
def cmd_findpids(*args)
if args.empty? or args.include? "-h"
- print_line "You must supply one or more process name to search for"
- print_line "e.g. findpids explorer.exe notepad.exe"
- print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
+ cmd_findpids_help
return true
end
processes = client.sys.process.get_processes
@@ -318,6 +316,12 @@ def cmd_findpids(*args)
return true
end
+ def cmd_findpids_help
+ print_line "You must supply one or more process name to search for"
+ print_line "e.g. findpids explorer.exe notepad.exe"
+ print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
+ end
+
#
# Reboots the remote computer.
#

0 comments on commit 71e57a6

Please sign in to comment.
Something went wrong with that request. Please try again.