Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Chrome Browser parser #324

Merged
merged 2 commits into from
Jan 29, 2023
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: 4 additions & 2 deletions scripts/artifacts/browserCachechrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ def get_browserCachechrome(files_found, report_folder, seeker, wrap_text):
spath = f'<video width="320" height="240" controls="controls"><source src="{spath}" type="video/mp4">Your browser does not support the video tag.</video>'
elif 'image' in mime:
spath = f'<img src="{spath}"width="300"></img>'
elif 'audio' in mime:
spath = f'<audio controls><source src="{spath}" type="audio/ogg"><source src="{spath}" type="audio/mpeg">Your browser does not support the audio element.</audio>'
else:
spath = f'<a href="{spath}"> Link to {mime} </>'

data_list.append((utc_modified_date, filename, spath, url, file_found))
data_list.append((utc_modified_date, filename, mime, spath, url, file_found))

if len(data_list) > 0:
note = 'Source location in extraction found in the report for each item.'
report = ArtifactHtmlReport('Chrome Browser Cache')
report.start_artifact_report(report_folder, f'Chrome Browser Cache')
report.add_script()
data_headers = ('Timestamp Modified', 'Filename', 'Cached File', 'Source URL', 'Source')
data_headers = ('Timestamp Modified', 'Filename', 'Mime Type', 'Cached File', 'Source URL', 'Source')
report.write_artifact_data_table(data_headers, data_list, note, html_no_escape=['Cached File'])
report.end_artifact_report()

Expand Down