Fixed so that we don't print out the list head as a possible hive. For details see: http://moyix.blogspot.com/2008/02/enumerating-registry-hives.html

This commit is contained in:
gleeda
2012-11-30 21:38:20 +00:00
parent 9d4fd0b2ff
commit f3871f3822
+1 -1
View File
@@ -58,7 +58,7 @@ class HiveList(hs.HiveScan):
hive_offsets = []
for hive in result:
if hive.obj_offset not in hive_offsets:
if hive.Hive.Signature == 0xbee0bee0 and hive.obj_offset not in hive_offsets:
try:
name = str(hive.FileFullPath or '') or str(hive.FileUserName or '') or str(hive.HiveRootPath or '') or "[no name]"
except AttributeError: