Skip to content

Commit 70bbacf

Browse files
author
Brent Cook
committed
kill processes in reverse, allow children before parents more likely
1 parent 85f7d73 commit 70bbacf

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def cmd_pkill(*args)
393393
return true
394394
end
395395

396-
pids = processes.collect { |p| p['pid'] }
396+
pids = processes.collect { |p| p['pid'] }.reverse
397397
print_line("Killing: #{pids.join(', ')}")
398398
client.sys.process.kill(*(pids.map { |x| x }))
399399
true

0 commit comments

Comments
 (0)