Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/artifacts/siminfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "SIM card details (number, IMSI, ICCID, carrier) from the telephony provider database",
"author": "@abrignoni",
"creation_date": "2020-03-02",
"last_update_date": "2020-03-02",
"last_update_date": "2026-08-14",
"requirements": "none",
"category": "Device Information",
"notes": "",
Expand Down Expand Up @@ -64,6 +64,10 @@ def get_siminfo(context):
continue

db = open_sqlite_db_readonly(file_found)
if db is None:
# open_sqlite_db_readonly returns None (and logs the reason) when the
# database cannot be opened; skip it rather than crashing the artifact.
continue
cursor = db.cursor()
try:
cursor.execute(PRIMARY_SQL)
Expand Down
Loading