mirror of
https://github.com/mvt-project/mvt.git
synced 2026-08-28 21:50:38 +02:00
Add warning for apple notification
This commit is contained in:
@@ -102,12 +102,16 @@ class SMS(IOSExtraction):
|
|||||||
if not message.get("text", None):
|
if not message.get("text", None):
|
||||||
message["text"] = ""
|
message["text"] = ""
|
||||||
|
|
||||||
# Extract links from the SMS message.
|
if message.get("text", "").startswith("ALERT: State-sponsored attackers may be targeting your iPhone"):
|
||||||
message_links = check_for_links(message.get("text", ""))
|
self.log.warn("Apple warning about state-sponsored attack received on the %s", message["isodate"])
|
||||||
|
|
||||||
# If we find links in the messages or if they are empty we add them to the list.
|
|
||||||
if message_links or message.get("text", "").strip() == "":
|
|
||||||
self.results.append(message)
|
self.results.append(message)
|
||||||
|
else:
|
||||||
|
# Extract links from the SMS message.
|
||||||
|
message_links = check_for_links(message.get("text", ""))
|
||||||
|
|
||||||
|
# If we find links in the messages or if they are empty we add them to the list.
|
||||||
|
if message_links or message.get("text", "").strip() == "":
|
||||||
|
self.results.append(message)
|
||||||
|
|
||||||
cur.close()
|
cur.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user