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

Function check_debug

windows/utils/winutils.py:197–212  ·  view source on GitHub ↗

Check that kernel is in debug mode (beware of NOUMEX): https://msdn.microsoft.com/en-us/library/windows/hardware/ff556253(v=vs.85).aspx#_______noumex______

()

Source from the content-addressed store, hash-verified

195
196
197def check_debug():
198 """Check that kernel is in debug mode (beware of NOUMEX):
199
200 https://msdn.microsoft.com/en-us/library/windows/hardware/ff556253(v=vs.85).aspx#_______noumex______
201 """
202 options = windows.system.registry(r'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control')['SystemStartOptions']
203 control = options.value
204 if "DEBUG" not in control:
205 # print "[-] Enable debug boot!"
206 # print "> bcdedit /debug on"
207 return False
208 if "DEBUG=NOUMEX" not in control:
209 pass
210 # print "[*] Warning noumex not set!"
211 # print "> bcdedit /set noumex on"
212 return True
213
214UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0)
215WINDOWS_EPOCH = datetime.datetime(1601, 1, 1, 0, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected