Compare commits

..

2 Commits
v2.1 ... v2.1.1

Author SHA1 Message Date
Nex
93094367c7 Bumped version 2022-07-20 15:41:42 +02:00
Nex
e8fa9c6eea Passing binary data to parse rather than a file path 2022-07-20 15:41:07 +02:00
2 changed files with 5 additions and 5 deletions

View File

@@ -3,4 +3,4 @@
# Use of this software is governed by the MVT License 1.1 that can be found at
# https://license.mvt.re/1.1/
MVT_VERSION = "2.1"
MVT_VERSION = "2.1.1"

View File

@@ -52,11 +52,10 @@ class ProfileEvents(IOSExtraction):
self.detected.append(result)
@staticmethod
def parse_profile_events(events_file_path) -> list:
def parse_profile_events(file_data: bytes) -> list:
results = []
with open(events_file_path, "rb") as handle:
events_plist = plistlib.load(handle)
events_plist = plistlib.loads(file_data)
if "ProfileEvents" not in events_plist:
return results
@@ -90,7 +89,8 @@ class ProfileEvents(IOSExtraction):
self.log.info("Found MCProfileEvents.plist file at %s", events_file_path)
self.results.extend(self.parse_profile_events(events_file_path))
with open(events_file_path, "rb") as handle:
self.results.extend(self.parse_profile_events(handle.read()))
for result in self.results:
self.log.info("On %s process \"%s\" started operation \"%s\" of profile \"%s\"",