File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
modules/post/windows/gather Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ def extension_mailvelope_parse_key(data)
47
47
def extension_mailvelope ( username , extname )
48
48
chrome_path = @profiles_path + "\\ " + username + @data_path
49
49
maildb_path = chrome_path + "/Local Storage/chrome-extension_#{ extname } _0.localstorage"
50
- begin
51
- x = session . fs . file . stat ( maildb_path )
52
- rescue
50
+ if file_exist? ( maildb_path ) == false
53
51
print_error ( "==> Mailvelope database not found" )
54
52
return
55
53
end
@@ -195,9 +193,7 @@ def extract_data(username)
195
193
remote_path = chrome_path + '\\' + f
196
194
197
195
#Verify the path before downloading the file
198
- begin
199
- x = session . fs . file . stat ( remote_path )
200
- rescue
196
+ if file_exist? ( remote_path ) == false
201
197
print_error ( "#{ f } not found" )
202
198
next
203
199
end
You can’t perform that action at this time.
0 commit comments