sort Meterpreter ps output by pid

git-svn-id: file:///home/svn/framework3/trunk@5921 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2008-11-15 06:20:34 +00:00
parent 21cb3a5c79
commit 81be31d751
1 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ class Console::CommandDispatcher::Stdapi::Sys
# Lists running processes.
#
def cmd_ps(*args)
processes = client.sys.process.get_processes
processes = client.sys.process.get_processes.sort_by { |ent| ent['pid'] }
tbl = Rex::Ui::Text::Table.new(
'Header' => "Process list",
'Indent' => 4,
@ -386,4 +386,4 @@ end
end
end
end
end
end