mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-18 02:24:04 +00:00
Small language and style changes
This commit is contained in:
parent
ae6fec5ac5
commit
c9f54947e3
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user