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 }