Skip to content

Commit

Permalink
Merge pull request #166 from obsidianforensics/issue-165
Browse files Browse the repository at this point in the history
Update determine_version() to account for recent Chrome versions (up …
  • Loading branch information
obsidianforensics authored Mar 18, 2024
2 parents 8efd5ab + 4741bd2 commit 55617a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyhindsight/browsers/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def determine_version(self):
Based on research I did to create "Chrome Evolution" tool - dfir.blog/chrome-evolution
"""

possible_versions = list(range(1, 112))
possible_versions = list(range(1, 123))
# TODO: remove 82?
previous_possible_versions = possible_versions[:]

Expand Down Expand Up @@ -159,6 +159,10 @@ def trim_lesser_versions(version):
trim_lesser_versions_if('incremented_omnibox_typed_score', self.structure['History']['visits'], 68)
trim_lesser_versions_if('originator_from_visit', self.structure['History']['visits'], 106)
trim_lesser_versions_if('is_known_to_sync', self.structure['History']['visits'], 107)
trim_lesser_versions_if('consider_for_ntp_most_visited', self.structure['History']['visits'], 114)
trim_lesser_versions_if('external_referrer_url', self.structure['History']['visits'], 117)
trim_lesser_versions_if('visited_link_id', self.structure['History']['visits'], 119)
trim_lesser_versions_if('app_id', self.structure['History']['visits'], 122)
if 'visit_source' in list(self.structure['History'].keys()):
trim_lesser_versions_if('source', self.structure['History']['visit_source'], 7)
if 'downloads' in list(self.structure['History'].keys()):
Expand All @@ -167,6 +171,7 @@ def trim_lesser_versions(version):
trim_lesser_versions_if('etag', self.structure['History']['downloads'], 30)
trim_lesser_versions_if('original_mime_type', self.structure['History']['downloads'], 37)
trim_lesser_versions_if('last_access_time', self.structure['History']['downloads'], 59)
trim_lesser_versions_if('by_web_app_id', self.structure['History']['downloads'], 115)
if 'downloads_slices' in list(self.structure['History'].keys()):
trim_lesser_versions(58)
if 'content_annotations' in list(self.structure['History'].keys()):
Expand Down Expand Up @@ -195,7 +200,7 @@ def trim_lesser_versions(version):
log.debug("Analyzing 'Cookies' structure")
log.debug(f' - Starting possible versions: {possible_versions}')
if 'cookies' in list(self.structure['Cookies'].keys()):
trim_lesser_versions_if('is_same_party', self.structure['Cookies']['cookies'], 88)
trim_lesser_versions_if('source_port', self.structure['Cookies']['cookies'], 88)
trim_lesser_versions_if('source_scheme', self.structure['Cookies']['cookies'], 80)
trim_lesser_versions_if('samesite', self.structure['Cookies']['cookies'], 76)
trim_lesser_versions_if('is_persistent', self.structure['Cookies']['cookies'], 66)
Expand Down

0 comments on commit 55617a1

Please sign in to comment.