diff --git a/modules/post/windows/gather/enum_chrome.rb b/modules/post/windows/gather/enum_chrome.rb index 3c5b8546ad88..a5656c17a86a 100644 --- a/modules/post/windows/gather/enum_chrome.rb +++ b/modules/post/windows/gather/enum_chrome.rb @@ -47,9 +47,7 @@ def extension_mailvelope_parse_key(data) 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 @@ def extract_data(username) 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