From 651fd5e834a209855f505fa69af1bfcbef8b6f08 Mon Sep 17 00:00:00 2001 From: Stephen Fewer Date: Sat, 23 Jan 2010 16:50:44 +0000 Subject: [PATCH] fix for ps bug where the wrong arch was sometimes defaulted to if no arch was returned. git-svn-id: file:///home/svn/framework3/trunk@8211 4d416f70-5f16-0410-b530-b9f4589650da --- .../ui/console/command_dispatcher/stdapi/sys.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb index dbe2882cfc..b8cb31d546 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb @@ -217,12 +217,13 @@ class Console::CommandDispatcher::Stdapi::Sys processes.each { |ent| - arch = "x86" - # for display and consistency with payload naming we switch the internal 'x86_64' value to display 'x64' - if( ent['arch'] == ARCH_X86_64 ) - arch = "x64" - end - + arch = ent['arch'] + + # for display and consistency with payload naming we switch the internal 'x86_64' value to display 'x64' + if( arch == ARCH_X86_64 ) + arch = "x64" + end + tbl << [ ent['pid'].to_s, ent['name'], arch, ent['user'], ent['path'] ] }