Skip to content

Instantly share code, notes, and snippets.

import windows
assert windows.current_process.bitness == 32
for p in windows.system.processes[1:]:
try:
if p.bitness == 32:
continue
assert p.bitness == 64
for i in range(100):
@hakril
hakril / syswow64.py
Last active April 11, 2024 05:28
syswow64.py with assert
import struct
import ctypes
from ctypes import byref
import codecs
import functools
import windows
import windows.native_exec.simple_x86 as x86
import windows.native_exec.simple_x64 as x64
from .generated_def.winstructs import *