5. windows.utils – Windows Utilities¶
5.1. Context Managers¶
windows.utils provides some context managers wrapping standard contextual operations
like VirtualProtect or SysWow Redirection
5.1.1. VirtualProtected¶
5.1.2. DisableWow64FsRedirection¶
5.2. Helper functions¶
-
windows.utils.enable_privilege(lpszPrivilege, bEnablePrivilege)[source]¶ Enable or disable a privilege:
enable_privilege(SE_DEBUG_NAME, True)
-
windows.utils.check_debug()[source]¶ 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______
-
windows.utils.create_process(path, args=None, dwCreationFlags=0, show_windows=True)[source]¶ A convenient wrapper arround
windows.winproxy.CreateProcessA()
-
windows.utils.create_console()[source]¶ Create a new console displaying STDOUT. Useful in injection of GUI process