Skip to content

Commit

Permalink
Bold Device Detail Keys
Browse files Browse the repository at this point in the history
  • Loading branch information
stark4n6 committed May 9, 2024
1 parent d41813f commit c39aae7
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 27 deletions.
14 changes: 7 additions & 7 deletions scripts/artifacts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,39 @@ def get_build(files_found, report_folder, seeker, wrap_text, time_offset):
if splits[0] == 'ro.product.vendor.manufacturer':
key = 'Manufacturer'
value = splits[1]
logdevinfo(f"Manufacturer: {value}")
logdevinfo(f"<b>Manufacturer: </b>{value}")
elif splits[0] == 'ro.product.vendor.brand':
key = 'Brand'
value = splits[1]
logdevinfo(f"Brand: {value}")
logdevinfo(f"<b>Brand: </b>{value}")
data_list.append((key, value))
elif splits[0] == 'ro.product.vendor.model':
key = 'Model'
value = splits[1]
logdevinfo(f"Model: {value}")
logdevinfo(f"<b>Model: </b>{value}")
data_list.append((key, value))
elif splits[0] == 'ro.product.vendor.device':
key = 'Device'
value = splits[1]
logdevinfo(f"Device: {value}")
logdevinfo(f"<b>Device: </b>{value}")
data_list.append((key, value))
elif splits[0] == 'ro.vendor.build.version.release':
key = 'Android Version'
value = splits[1]
if Androidversion == 0:
scripts.artifacts.artGlobals.versionf = value
logfunc(f"Android version per build.props: {value}")
logdevinfo(f"Android version per build.props: {value}")
logdevinfo(f"<b>Android version per build.props: </b>{value}")
data_list.append((key, value))
elif splits[0] == 'ro.vendor.build.version.sdk':
key = 'SDK'
value = splits[1]
logdevinfo(f"SDK: {value}")
logdevinfo(f"<b>SDK: </b>{value}")
data_list.append((key, value))
elif splits[0] == 'ro.system.build.version.release':
key = ''
value = splits[1]
logdevinfo(f"Version release: {value}")
logdevinfo(f"<b>Version release: </b>{value}")
data_list.append((key, value))
elif splits[0] == 'ro.system.build.version.release':
key = ''
Expand Down
2 changes: 1 addition & 1 deletion scripts/artifacts/factory_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_factory_reset(files_found, report_folder, seeker, wrap_text, time_offset

reset_time = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(modTimesinceEpoc))

logdevinfo(f"Factory Reset Timestamp: {reset_time}")
logdevinfo(f"<b>Factory Reset Timestamp: </b>{reset_time}")
data_list.append((reset_time, file_name))

if data_list:
Expand Down
2 changes: 1 addition & 1 deletion scripts/artifacts/last_boot_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_last_boot_time(files_found, report_folder, seeker, wrap_text, time_offse

last_boot_time = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(modTimesinceEpoc))

logdevinfo(f"Last Boot Timestamp: {last_boot_time}")
logdevinfo(f"<b>Last Boot Timestamp: </b>{last_boot_time}")
data_list.append((last_boot_time, file_name))

if data_list:
Expand Down
9 changes: 4 additions & 5 deletions scripts/artifacts/protonVPN.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import timeline, tsv, is_platform_windows, open_sqlite_db_readonly, logfunc, logdevinfo, checkabx, abxread


def get_protonVPN(files_found, report_folder, seeker, wrap_text, time_offset):

for file_found in files_found:
Expand All @@ -34,17 +33,17 @@ def get_protonVPN(files_found, report_folder, seeker, wrap_text, time_offset):
data_list.append((elem.attrib.get('name'), elem.attrib.get('value')))

if (elem.attrib.get('name')) == 'ipAddress':
logdevinfo(f'IP Address: {elem.text}')
logdevinfo(f'<b>IP Address: </b>{elem.text}')

if (elem.attrib.get('name')) == 'lastKnownIsp':
logdevinfo(f'ISP: {elem.text}')
logdevinfo(f'<b>ISP: </b>{elem.text}')

if (elem.attrib.get('name')) == 'lastKnownCountry':
logdevinfo(f'Country: {elem.text}')
logdevinfo(f'<b>Country: </b>{elem.text}')

if (elem.attrib.get('name')) == 'ipAddressCheckTimestamp':
timestamp = datetime.datetime.utcfromtimestamp(int(elem.attrib.get("value"))/1000).strftime('%Y-%m-%d %H:%M:%S.%f')
logdevinfo(f'Last IP Check Time : {timestamp}')
logdevinfo(f'<b>Last IP Check Time: </b>{timestamp}')

if data_list:
report = ArtifactHtmlReport('ProtonVPN Device Info.xml')
Expand Down
4 changes: 2 additions & 2 deletions scripts/artifacts/settingsSecure.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ def process_ssecure(file_path, uid, report_folder):
val = setting.get('value')
if nme == 'bluetooth_name':
data_list.append((nme, val))
logdevinfo(f"Bluetooth name: {val}")
logdevinfo(f"<b>Bluetooth name: </b>{val}")
elif nme == 'mock_location':
data_list.append((nme, val))
elif nme == 'android_id':
data_list.append((nme, val))
elif nme == 'bluetooth_address':
data_list.append((nme, val))
logdevinfo(f"Bluetooth address: {val}")
logdevinfo(f"<b>Bluetooth address: </b>{val}")

if len(data_list) > 0:
report = ArtifactHtmlReport('Settings Secure')
Expand Down
4 changes: 2 additions & 2 deletions scripts/artifacts/siminfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def process_siminfo(folder, uid, report_folder):
row4 = row[4]
row5 = row[5]
data_list.append((row[0], row1, row[2], row[3], row4, row5, row[6]))
logdevinfo(f"SIM Number & IMSI: {row[0]} - {row1}")
logdevinfo(f"SIM Display Name: {row[2]}")
logdevinfo(f"<b>SIM Number & IMSI: </b>{row[0]} - {row1}")
logdevinfo(f"<b>SIM Display Name: </b>{row[2]}")
report.write_artifact_data_table(data_headers, data_list, folder)
report.end_artifact_report()

Expand Down
16 changes: 7 additions & 9 deletions scripts/artifacts/usagestatsVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, logdevinfo, is_platform_windows


def get_usagestatsVersion(files_found, report_folder, seeker, wrap_text, time_offset):
data_list = []
file_found = str(files_found[0])
Expand All @@ -15,28 +14,28 @@ def get_usagestatsVersion(files_found, report_folder, seeker, wrap_text, time_of
totalvalues = len(splits)
if totalvalues == 3:
logfunc(f"Android version {str(splits[0])}")
logdevinfo(f"Android version per Usagestats: {splits[0]}")
logdevinfo(f"<b>Android version per Usagestats: </b>{splits[0]}")
scripts.artifacts.artGlobals.versionf = splits[0]
data_list.append(('Android Version', splits[0]))

logdevinfo(f"Codename per Usagestats: {splits[1]}")
logdevinfo(f"<b>Codename per Usagestats: </b>{splits[1]}")
data_list.append(('Codename', splits[1]))

logdevinfo(f"Build version per Usagestats: {splits[2]}")
logdevinfo(f"<b>Build version per Usagestats: </b>{splits[2]}")
data_list.append(('Build version', splits[2]))
if totalvalues == 5:
logfunc(f"Android version {str(splits[0])}")
scripts.artifacts.artGlobals.versionf = splits[0]
logdevinfo(f"Android version per Usagestats: {splits[0]}")
logdevinfo(f"<b>Android version per Usagestats: </b>{splits[0]}")
data_list.append(('Android Version', splits[0]))

logdevinfo(f"Codename per Usagestats: {splits[1]}")
logdevinfo(f"<b>Codename per Usagestats: </b>{splits[1]}")
data_list.append(('Codename', splits[1]))

logdevinfo(f"Country Specific Code per Usagestats: {splits[3]}")
logdevinfo(f"<b>Country Specific Code per Usagestats: </b>{splits[3]}")
data_list.append(('Country Specific Code', splits[3]))

logdevinfo(f"Build version per Usagestats: {splits[2]}")
logdevinfo(f"<b>Build version per Usagestats: </b>{splits[2]}")
data_list.append(('Build Version', splits[2]))

if len(data_list) > 0:
Expand All @@ -53,7 +52,6 @@ def get_usagestatsVersion(files_found, report_folder, seeker, wrap_text, time_of
else:
logfunc(f'No OS Version file available')


__artifacts__ = {
"usagestatsVersion": (
"Usage Stats",
Expand Down

0 comments on commit c39aae7

Please sign in to comment.