use file_exist? instead of fs.file.stat

unstable
Rob Fuller 2013-05-10 11:17:42 -04:00
parent 25f7af43b4
commit 84ff72eb92
1 changed files with 2 additions and 6 deletions

View File

@ -47,9 +47,7 @@ class Metasploit3 < Msf::Post
def extension_mailvelope(username, extname)
chrome_path = @profiles_path + "\\" + username + @data_path
maildb_path = chrome_path + "/Local Storage/chrome-extension_#{extname}_0.localstorage"
begin
x = session.fs.file.stat(maildb_path)
rescue
if file_exist?(maildb_path) == false
print_error("==> Mailvelope database not found")
return
end
@ -195,9 +193,7 @@ class Metasploit3 < Msf::Post
remote_path = chrome_path + '\\' + f
#Verify the path before downloading the file
begin
x = session.fs.file.stat(remote_path)
rescue
if file_exist?(remote_path) == false
print_error("#{f} not found")
next
end