From be9197fc974ab0b12b48b76ca6b62c5240ec0fdd Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 22 Dec 2015 03:26:31 +0000 Subject: [PATCH] quick fix for issues #6359 --- modules/post/multi/manage/shell_to_meterpreter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/multi/manage/shell_to_meterpreter.rb b/modules/post/multi/manage/shell_to_meterpreter.rb index b47e779fba..2c0fb99649 100644 --- a/modules/post/multi/manage/shell_to_meterpreter.rb +++ b/modules/post/multi/manage/shell_to_meterpreter.rb @@ -93,7 +93,7 @@ class Metasploit3 < Msf::Post vprint_status("Platform: Solaris") else # Find the best fit, be specific with uname to avoid matching hostname or something else - target_info = cmd_exec('uname -mo') + target_info = cmd_exec('uname -ms') if target_info =~ /linux/i && target_info =~ /86/ # Handle linux shells that were identified as 'unix' platform = 'linux'