Skip to content

Commit

Permalink
Merge pull request #424 from abrignoni/Brigs-working
Browse files Browse the repository at this point in the history
New Google Maps navigation artifacts
  • Loading branch information
abrignoni authored Oct 16, 2023
2 parents 4268e35 + 9b16327 commit 917ade4
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
46 changes: 46 additions & 0 deletions scripts/artifacts/googleInitiatedNav.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import blackboxprotobuf
from datetime import *
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, is_platform_windows, convert_utc_human_to_timezone, kmlgen, timeline

def get_googleInitiatedNav(files_found, report_folder, seeker, wrap_text, time_offset):
data_list = []
for file_found in files_found:
with open(file_found, 'rb') as f:
data = f.read()

arreglo = (data)
pb = arreglo[8:]
values, types = blackboxprotobuf.decode_message(pb)

for data in values['1']:
timestamp = data['2']
timestamp = datetime.fromtimestamp(timestamp/1000000, tz=timezone.utc)
timestamp = convert_utc_human_to_timezone(timestamp, time_offset)
intendeddest = data['4']['1'].decode()

data_list.append((timestamp, intendeddest))

if len(data_list) > 0:
report = ArtifactHtmlReport('Google Initiated Navigation')
report.start_artifact_report(report_folder, f'Google Initiated Navigation')
report.add_script()
data_headers = ('Timestamp', 'Initiated Navigation Destination')
report.write_artifact_data_table(data_headers, data_list, file_found)
report.end_artifact_report()

tsvname = f'Google Initiated Navigation'
tsv(report_folder, data_headers, data_list, tsvname)

tlactivity = f'Google Initiated Navigation'
timeline(report_folder, tlactivity, data_list, data_headers)

else:
logfunc(f'No Google Initiated Navigation available')

__artifacts__ = {
"googleInitiatedNav": (
"GEO Location",
('*/com.google.android.apps.maps/files/new_recent_history_cache_navigated.cs','*/new_recent_history_cache_navigated.cs'),
get_googleInitiatedNav)
}
Loading

0 comments on commit 917ade4

Please sign in to comment.