mirror of
https://github.com/mvt-project/mvt.git
synced 2026-05-15 05:30:33 +02:00
Small language and style changes
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user