File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -288,9 +288,7 @@ def cmd_ps(*args)
288
288
289
289
def cmd_findpids ( *args )
290
290
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
294
292
return true
295
293
end
296
294
processes = client . sys . process . get_processes
@@ -318,6 +316,12 @@ def cmd_findpids(*args)
318
316
return true
319
317
end
320
318
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
+
321
325
#
322
326
# Reboots the remote computer.
323
327
#
You can’t perform that action at this time.
0 commit comments