From 9dc37c3cc71bc5f5273439fbc655832bd190b0a7 Mon Sep 17 00:00:00 2001 From: David Bloom Date: Thu, 24 Jul 2014 23:18:26 +0200 Subject: [PATCH] Update gnome_commander_creds.rb --- modules/post/linux/gather/gnome_commander_creds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/linux/gather/gnome_commander_creds.rb b/modules/post/linux/gather/gnome_commander_creds.rb index 45dc6abf19..cab5b0f584 100644 --- a/modules/post/linux/gather/gnome_commander_creds.rb +++ b/modules/post/linux/gather/gnome_commander_creds.rb @@ -23,7 +23,7 @@ class Metasploit3 < Msf::Post def run user_dirs = [] user = cmd_exec("whoami").chomp - if (user == /root/) + if (user == 'root') print_status("Current user is #{user}, probing all home dirs") user_dirs << '/root' cmd_exec('ls /home').each_line.map { |l| user_dirs << "/home/#{l}".chomp }