MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / disable

Method disable

windows/hooks.py:89–94  ·  view source on GitHub ↗

Disable the IAT hook

(self)

Source from the content-addressed store, hash-verified

87 self.entry.enabled = True
88
89 def disable(self):
90 """Disable the IAT hook"""
91 with utils.VirtualProtected(self.entry.addr, ctypes.sizeof(PVOID), PAGE_EXECUTE_READWRITE):
92 self.entry.value = self.entry.nonhookvalue
93 self.is_enable = False
94 self.entry.enabled = True
95
96 def hook_callback(self, *args):
97 adapted_args = []

Callers 1

remove_hookMethod · 0.80

Calls 1

sizeofMethod · 0.45

Tested by

no test coverage detected