MCPcopy Index your code
hub / github.com/jipegit/OSXAuditor / ParseFirefoxProfile

Function ParseFirefoxProfile

osxauditor.py:598–616  ·  view source on GitHub ↗

Parse the different SQLite databases in a Firefox profile

(User, Profile)

Source from the content-addressed store, hash-verified

596 PrintAndLog(SQLiteDbPath.decode('utf-8') + u' not found\n', 'ERROR')
597
598def ParseFirefoxProfile(User, Profile):
599 ''' Parse the different SQLite databases in a Firefox profile '''
600
601 PrintAndLog(User + u'\'s Firefox profile (' + Profile.decode('utf-8') + u')', 'SUBSECTION')
602
603 #Most useful See http://kb.mozillazine.org/Profile_folder_-_Firefox
604 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'cookies.sqlite'))
605 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'downloads.sqlite'))
606 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'formhistory.sqlite'))
607 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'places.sqlite'))
608 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'signons.sqlite'))
609
610 #Secondary
611 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'permissions.sqlite'))
612 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'addons.sqlite'))
613 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'extensions.sqlite'))
614 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'content-prefs.sqlite'))
615 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'healthreport.sqlite'))
616 DumpSQLiteDb(os.path.join(ROOT_PATH, 'Users', User, 'Library/Application Support/Firefox/Profiles/', Profile, 'webappsstore.sqlite'))
617
618def ParseFirefox():
619 ''' Walk in all users' FireFox profiles and call ParseFirefoxProfile() '''

Callers 1

ParseFirefoxFunction · 0.85

Calls 2

PrintAndLogFunction · 0.85
DumpSQLiteDbFunction · 0.85

Tested by

no test coverage detected