Small language and style changes

This commit is contained in:
Nex 2022-06-29 01:11:30 +02:00
parent ae6fec5ac5
commit c9f54947e3
3 changed files with 5 additions and 3 deletions

View File

@ -13,6 +13,7 @@ from .base import IOSUSBExtraction
class Applications(IOSUSBExtraction):
"""This class extracts all applications installed on the phone"""
def __init__(self, file_path: str = None, target_path: str = None,
results_path: str = None, fast_mode: bool = False,
log: logging.Logger = None, results: list = []) -> None:
@ -41,5 +42,5 @@ class Applications(IOSUSBExtraction):
self.results = user_apps + system_apps
self.log.info("%d applications identified on the phone",
self.log.info("Identified %d applications installed on the device",
len(self.results))

View File

@ -13,6 +13,7 @@ from .base import IOSUSBExtraction
class DeviceInfo(IOSUSBExtraction):
"""This class extracts all processes running on the phone."""
def __init__(self, file_path: str = None, target_path: str = None,
results_path: str = None, fast_mode: bool = False,
log: logging.Logger = None, results: list = []) -> None:

View File

@ -31,12 +31,12 @@ class Processes(IOSUSBExtraction):
self.detected.append(result)
def run(self) -> None:
processes = OsTraceService(lockdown=self.lockdown).get_pid_list().get('Payload')
processes = OsTraceService(lockdown=self.lockdown).get_pid_list().get("Payload")
for pid in processes:
self.results.append({
"pid": pid,
"name": processes[pid]["ProcessName"]
})
self.log.info("%d running processes identified on the phone",
self.log.info("Identified %d processes running on the device",
len(self.results))