add a lambda placeholder for is_windows_10 - replace it once we have PE file version checks

This commit is contained in:
Michael Ligh
2018-09-15 15:22:38 +01:00
committed by ikelos
parent f02df7a92e
commit 9d6055d2ba
+13 -2
View File
@@ -72,9 +72,20 @@ class PoolScanner(plugins.PluginInterface):
size = (600, None),
page_type = PoolType.PAGED | PoolType.NONPAGED | PoolType.FREE),
]
base_layer = self.context.memory[self.config['primary']].config['memory_layer']
# FIXME: replace this lambda with a real function
is_windows_10 = lambda : False
# FIXME: scanning the primary layer seems very slow (10min on 512mb grrcon)
# start off with the primary virtual layer
scan_layer = self.config['primary']
# switch to a non-virtual layer if necessary
if not is_windows_10():
scan_layer = self.context.memory[scan_layer].config['memory_layer']
for constraint, header in self.pool_scan(self._context,
base_layer,
scan_layer,
self.config['nt_symbols'],
constraints,
alignment = 8):