Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Make hive parsing Python3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
comawill committed Oct 22, 2019
1 parent 5073ff9 commit d7da2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShimCacheParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def read_from_hive(hive):
# reg save "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatibility" "c:\temp\AppCompatibility.hve" /y
keys = reg.root().values()
for k in keys:
bin_data = str(k.value())
bin_data = k.value()
tmp_list = read_cache(bin_data)

if tmp_list:
Expand All @@ -635,7 +635,7 @@ def read_from_hive(hive):
# Read the Shim Cache structure.
if ('appcompatibility' in subkey.name().lower() or
'appcompatcache' in subkey.name().lower()):
bin_data = str(subkey['AppCompatCache'].value())
bin_data = subkey['AppCompatCache'].value()
tmp_list = read_cache(bin_data)

if tmp_list:
Expand Down

0 comments on commit d7da2a0

Please sign in to comment.