1
mirror of https://github.com/mvt-project/mvt synced 2025-10-21 22:42:15 +02:00

Compare commits

..

9 Commits
v2.1 ... v2.1.3

Author SHA1 Message Date
Nex
f5abd0719c Bumped version 2022-08-02 18:26:29 +02:00
Nex
6462ffc15d Added iOS 15.6 2022-08-02 18:26:23 +02:00
Nex
6333cafd38 Bumped version 2022-07-25 17:43:37 +02:00
Nex
03c59811a3 Ordered imports 2022-07-25 17:43:27 +02:00
Nex
cfd3b5bbcb Merge branch 'main' of github.com:mvt-project/mvt 2022-07-25 17:43:08 +02:00
Nex
97ab67240f Creating MVT data folder when missing 2022-07-25 17:42:51 +02:00
Nex
7fc664185c Flake8 fixes 2022-07-20 15:49:51 +02:00
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
6 changed files with 15 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ class SMS(AndroidExtraction):
try:
self.results = parse_tar_for_sms(backup_tar)
except AndroidBackupParsingError:
self.log.info("Impossible to read SMS from the Android Backup, please extract "\
self.log.info("Impossible to read SMS from the Android Backup, please extract "
"the SMS and try extracting it with Android Backup Extractor")
return
@@ -142,6 +142,6 @@ class SMS(AndroidExtraction):
except InsufficientPrivileges:
pass
self.log.warn("No SMS database found. Trying extraction of SMS data using " \
self.log.warn("No SMS database found. Trying extraction of SMS data using "
"Android backup feature.")
self._extract_sms_adb()

View File

@@ -43,6 +43,9 @@ class IndicatorsUpdates:
self.index_branch = "main"
self.index_path = "indicators.yaml"
if not os.path.exists(MVT_DATA_FOLDER):
os.makedirs(MVT_DATA_FOLDER)
self.latest_update_path = os.path.join(MVT_DATA_FOLDER,
"latest_indicators_update")
self.latest_check_path = os.path.join(MVT_DATA_FOLDER,

View File

@@ -3,8 +3,9 @@
# Use of this software is governed by the MVT License 1.1 that can be found at
# https://license.mvt.re/1.1/
import requests
from typing import Optional
import requests
from tld import get_tld
SHORTENER_DOMAINS = [

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.3"

View File

@@ -31,7 +31,7 @@ class ProfileEvents(IOSExtraction):
"timestamp": record.get("timestamp"),
"module": self.__class__.__name__,
"event": "profile_operation",
"data": f"Process {record.get('process')} started operation " \
"data": f"Process {record.get('process')} started operation "
f"{record.get('operation')} of profile {record.get('profile_id')}"
}
@@ -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\"",

View File

@@ -240,7 +240,8 @@ IPHONE_IOS_VERSIONS = [
{"build": "19D52", "version": "15.3.1"},
{"build": "19E241", "version": "15.4"},
{"build": "19E258", "version": "15.4.1"},
{"build": "19F77", "version": "15.5"}
{"build": "19F77", "version": "15.5"},
{"build": "19G71", "version": "15.6"},
]