This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 * |