Skip to content

Instantly share code, notes, and snippets.

@hakril
Last active January 31, 2020 13:53
Show Gist options
  • Save hakril/90ccdcebf247f19e3ba0fc5dbdc0859a to your computer and use it in GitHub Desktop.
Save hakril/90ccdcebf247f19e3ba0fc5dbdc0859a to your computer and use it in GitHub Desktop.
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):
_ = p.query_working_setex([i * 0x1000])
for x in p.memory_state():
_ = x.Protect
except Exception as e:
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment