mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
8213 Python modules context vars
This commit is contained in:
parent
25f0698951
commit
dd39d31dd4
@ -62,7 +62,7 @@ class BrowserLocationAnalyzer(general.AndroidComponentAnalyzer):
|
||||
try:
|
||||
jFile = File(Case.getCurrentCase().getTempDirectory(), str(abstractFile.getId()) + abstractFile.getName())
|
||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||
self.__findGeoLocationsInDB(jFile.toString(), abstractFile)
|
||||
self.__findGeoLocationsInDB(jFile.toString(), abstractFile, context)
|
||||
except Exception as ex:
|
||||
self._logger.log(Level.SEVERE, "Error parsing browser location files", ex)
|
||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||
@ -70,7 +70,7 @@ class BrowserLocationAnalyzer(general.AndroidComponentAnalyzer):
|
||||
# Error finding browser location files.
|
||||
pass
|
||||
|
||||
def __findGeoLocationsInDB(self, databasePath, abstractFile):
|
||||
def __findGeoLocationsInDB(self, databasePath, abstractFile, context):
|
||||
if not databasePath:
|
||||
return
|
||||
|
||||
|
@ -66,7 +66,7 @@ class CacheLocationAnalyzer(general.AndroidComponentAnalyzer):
|
||||
try:
|
||||
jFile = File(Case.getCurrentCase().getTempDirectory(), str(abstractFile.getId()) + abstractFile.getName())
|
||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||
self.__findGeoLocationsInFile(jFile, abstractFile)
|
||||
self.__findGeoLocationsInFile(jFile, abstractFile, context)
|
||||
except Exception as ex:
|
||||
self._logger.log(Level.SEVERE, "Error parsing cached location files", ex)
|
||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||
@ -74,7 +74,7 @@ class CacheLocationAnalyzer(general.AndroidComponentAnalyzer):
|
||||
# Error finding cached location files.
|
||||
pass
|
||||
|
||||
def __findGeoLocationsInFile(self, file, abstractFile):
|
||||
def __findGeoLocationsInFile(self, file, abstractFile, context):
|
||||
|
||||
try:
|
||||
# code to parse the cache.wifi and cache.cell taken from https://forensics.spreitzenbarth.de/2011/10/28/decoding-cache-cell-and-cache-wifi-files/
|
||||
|
@ -92,7 +92,7 @@ class ViberAnalyzer(general.AndroidComponentAnalyzer):
|
||||
helper = CommunicationArtifactsHelper(
|
||||
current_case.getSleuthkitCase(), self._PARSER_NAME,
|
||||
contact_and_calllog_db.getDBFile(), Account.Type.VIBER, context.getJobId())
|
||||
self.parse_contacts(contact_and_calllog_db, helper)
|
||||
self.parse_contacts(contact_and_calllog_db, helper, context)
|
||||
self.parse_calllogs(contact_and_calllog_db, helper)
|
||||
|
||||
#Extract TSK_MESSAGE information
|
||||
@ -113,7 +113,7 @@ class ViberAnalyzer(general.AndroidComponentAnalyzer):
|
||||
for contact_and_calllog_db in contact_and_calllog_dbs:
|
||||
contact_and_calllog_db.close()
|
||||
|
||||
def parse_contacts(self, contacts_db, helper):
|
||||
def parse_contacts(self, contacts_db, helper, context):
|
||||
try:
|
||||
contacts_parser = ViberContactsParser(contacts_db)
|
||||
while contacts_parser.next():
|
||||
|
Loading…
x
Reference in New Issue
Block a user