File tree 1 file changed +8
-2
lines changed
pypykatz/lsadecryptor/packages/wdigest
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,17 @@ def get_template(sysinfo):
35
35
template .primary_offset = 48
36
36
template .list_entry = PWdigestListEntry
37
37
38
- elif sysinfo .buildnumber >= WindowsMinBuild .WIN_VISTA .value :
38
+ elif WindowsMinBuild . WIN_VISTA . value <= sysinfo .buildnumber < WindowsMinBuild .WIN_11 .value :
39
39
template .signature = b'\x48 \x3b \xd9 \x74 '
40
40
template .first_entry_offset = - 4
41
41
template .primary_offset = 48
42
42
template .list_entry = PWdigestListEntry
43
+
44
+ elif sysinfo .buildnumber >= WindowsMinBuild .WIN_11 .value :
45
+ template .signature = b'\x48 \x3b \xd8 \x74 '
46
+ template .first_entry_offset = - 4
47
+ template .primary_offset = 48
48
+ template .list_entry = PWdigestListEntry
43
49
44
50
else :
45
51
raise Exception ('Could not identify template! Architecture: %s sysinfo.buildnumber: %s' % (sysinfo .architecture , sysinfo .buildnumber ))
@@ -114,4 +120,4 @@ def __init__(self, reader):
114
120
self .usage_count = ULONG (reader )
115
121
reader .align () #8?
116
122
self .this_entry = PWdigestListEntry (reader )
117
- self .luid = LUID (reader ).value
123
+ self .luid = LUID (reader ).value
You can’t perform that action at this time.
0 commit comments