From d7da2a06138c3316d8f480d90160ac001fd5f013 Mon Sep 17 00:00:00 2001 From: Sebastian Willenborg Date: Sat, 19 Oct 2019 13:41:52 +0200 Subject: [PATCH] Make hive parsing Python3 compatible --- ShimCacheParser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShimCacheParser.py b/ShimCacheParser.py index 00c54a1..4b823a8 100755 --- a/ShimCacheParser.py +++ b/ShimCacheParser.py @@ -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: @@ -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: