Merge pull request #178 from mvt-project/webkit_error

Fixes a bug in retrieving the backup file path in webkit session resource log
This commit is contained in:
Nex 2021-09-01 21:57:49 +02:00 committed by GitHub
commit bef190fe50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,10 @@ class WebkitSessionResourceLog(IOSExtraction):
def run(self):
if self.is_backup:
for log_path in self._get_backup_files_from_manifest(relative_path=WEBKIT_SESSION_RESOURCE_LOG_BACKUP_RELPATH):
for log_file in self._get_backup_files_from_manifest(relative_path=WEBKIT_SESSION_RESOURCE_LOG_BACKUP_RELPATH):
log_path = self._get_backup_file_from_id(log_file["file_id"])
if not log_path:
continue
self.log.info("Found Safari browsing session resource log at path: %s", log_path)
self.results[log_path] = self._extract_browsing_stats(log_path)
elif self.is_fs_dump: