From fda621672dd2702f40f3fca2e7281913572bf71c Mon Sep 17 00:00:00 2001 From: Nex Date: Sun, 15 Aug 2021 19:50:55 +0200 Subject: [PATCH] Renamed webkit helper function --- mvt/ios/modules/fs/webkit_base.py | 2 +- mvt/ios/modules/fs/webkit_indexeddb.py | 2 +- mvt/ios/modules/fs/webkit_localstorage.py | 2 +- mvt/ios/modules/fs/webkit_safariviewservice.py | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mvt/ios/modules/fs/webkit_base.py b/mvt/ios/modules/fs/webkit_base.py index 14d0b32..58f59e5 100644 --- a/mvt/ios/modules/fs/webkit_base.py +++ b/mvt/ios/modules/fs/webkit_base.py @@ -22,7 +22,7 @@ class WebkitBase(IOSExtraction): if self.indicators.check_domain(item["url"]): self.detected.append(item) - def _database_from_path(self, root_paths): + def _process_webkit_folder(self, root_paths): for found_path in self._find_paths(root_paths): key = os.path.relpath(found_path, self.base_folder) diff --git a/mvt/ios/modules/fs/webkit_indexeddb.py b/mvt/ios/modules/fs/webkit_indexeddb.py index a4aa2a0..a588e15 100644 --- a/mvt/ios/modules/fs/webkit_indexeddb.py +++ b/mvt/ios/modules/fs/webkit_indexeddb.py @@ -30,6 +30,6 @@ class WebkitIndexedDB(WebkitBase): } def run(self): - self._database_from_path(WEBKIT_INDEXEDDB_ROOT_PATHS) + self._process_webkit_folder(WEBKIT_INDEXEDDB_ROOT_PATHS) self.log.info("Extracted a total of %d WebKit IndexedDB records", len(self.results)) diff --git a/mvt/ios/modules/fs/webkit_localstorage.py b/mvt/ios/modules/fs/webkit_localstorage.py index 868b601..500800c 100644 --- a/mvt/ios/modules/fs/webkit_localstorage.py +++ b/mvt/ios/modules/fs/webkit_localstorage.py @@ -28,6 +28,6 @@ class WebkitLocalStorage(WebkitBase): } def run(self): - self._database_from_path(WEBKIT_LOCALSTORAGE_ROOT_PATHS) + self._process_webkit_folder(WEBKIT_LOCALSTORAGE_ROOT_PATHS) self.log.info("Extracted a total of %d records from WebKit Local Storages", len(self.results)) diff --git a/mvt/ios/modules/fs/webkit_safariviewservice.py b/mvt/ios/modules/fs/webkit_safariviewservice.py index c0b5a82..9a2983e 100644 --- a/mvt/ios/modules/fs/webkit_safariviewservice.py +++ b/mvt/ios/modules/fs/webkit_safariviewservice.py @@ -20,4 +20,6 @@ class WebkitSafariViewService(WebkitBase): log=log, results=results) def run(self): - self._database_from_path(WEBKIT_SAFARIVIEWSERVICE_ROOT_PATHS) + self._process_webkit_folder(WEBKIT_SAFARIVIEWSERVICE_ROOT_PATHS) + self.log.info("Extracted a total of %d records from WebKit SafariViewService WebsiteData", + len(self.results))