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______
()
| 195 | |
| 196 | |
| 197 | def 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 | |
| 214 | UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0) |
| 215 | WINDOWS_EPOCH = datetime.datetime(1601, 1, 1, 0, 0) |
nothing calls this directly
no outgoing calls
no test coverage detected