From a966b694ea0f83273e05fd30b97048323af15adc Mon Sep 17 00:00:00 2001 From: Nex Date: Sat, 13 Aug 2022 18:27:54 +0200 Subject: [PATCH] More line length enforcement --- mvt/android/modules/adb/files.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mvt/android/modules/adb/files.py b/mvt/android/modules/adb/files.py index 9b82ee3..2af3659 100644 --- a/mvt/android/modules/adb/files.py +++ b/mvt/android/modules/adb/files.py @@ -48,11 +48,12 @@ class Files(AndroidExtraction): def check_indicators(self) -> None: for result in self.results: if result.get("is_suid"): - self.log.warning("Found an SUID file in a non-standard directory \"%s\".", - result["path"]) + self.log.warning("Found an SUID file in a non-standard " + "directory \"%s\".", result["path"]) if self.indicators and self.indicators.check_file_path(result["path"]): - self.log.warning("Found a known suspicous file at path: \"%s\"", result["path"]) + self.log.warning("Found a known suspicous file at path: \"%s\"", + result["path"]) self.detected.append(result) def backup_file(self, file_path: str) -> None: @@ -74,7 +75,8 @@ class Files(AndroidExtraction): def find_files(self, folder: str) -> None: if self.full_find: - output = self._adb_command(f"find '{folder}' -type f -printf '%T@ %m %s %u %g %p\n' 2> /dev/null") + cmd = f"find '{folder}' -type f -printf '%T@ %m %s %u %g %p\n' 2> /dev/null" + output = self._adb_command(cmd) for file_line in output.splitlines(): [unix_timestamp, mode, size, @@ -122,7 +124,8 @@ class Files(AndroidExtraction): if self.fast_mode: self.log.info("Flag --fast was enabled: skipping full file listing") else: - self.log.info("Processing full file listing. This may take a while...") + self.log.info("Processing full file listing. " + "This may take a while...") self.find_files("/") self.log.info("Found %s total files", len(self.results))