Automagic: Improve secondary 64-bit self-ref finder

This commit is contained in:
Mike Auty
2021-04-03 13:33:20 +01:00
parent 087b172148
commit a1c5f5e5e5
+5 -1
View File
@@ -128,9 +128,13 @@ class DtbTest64bit(DtbTest):
def __init__(self) -> None:
super().__init__(layer_type = layers.intel.WindowsIntel32e,
ptr_struct = "Q",
ptr_reference = [0x1ED, 0x1FB],
ptr_reference = range(0x1E0, 0x1FF),
mask = 0x3FFFFFFFFFF000)
# As of Windows-10 RS1+, the ptr_reference is randomized:
# https://blahcat.github.io/2020/06/15/playing_with_self_reference_pml4_entry/
# So far, we've only seen examples between 0x1e0 and 0x1ff
class DtbTestPae(DtbTest):