Skip to content

Commit 71e57a6

Browse files
David MaloneyDavid Maloney
authored andcommitted
Moved help text into cmd_findpids_help
1 parent 228a150 commit 71e57a6

File tree

1 file changed

+7
-3
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,7 @@ def cmd_ps(*args)
288288

289289
def cmd_findpids(*args)
290290
if args.empty? or args.include? "-h"
291-
print_line "You must supply one or more process name to search for"
292-
print_line "e.g. findpids explorer.exe notepad.exe"
293-
print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
291+
cmd_findpids_help
294292
return true
295293
end
296294
processes = client.sys.process.get_processes
@@ -318,6 +316,12 @@ def cmd_findpids(*args)
318316
return true
319317
end
320318

319+
def cmd_findpids_help
320+
print_line "You must supply one or more process name to search for"
321+
print_line "e.g. findpids explorer.exe notepad.exe"
322+
print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
323+
end
324+
321325
#
322326
# Reboots the remote computer.
323327
#

0 commit comments

Comments
 (0)