-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
This is cool. Used this to hack the Doom video game, youtube here: https://youtu.be/X5UHxr9TxvU
The code I used is:
#!/usr/bin/env python
import mach
import sys
if len(sys.argv) < 2:
print "please specify a value to update the ammo to"
sys.exit(1)
print "Writing " + sys.argv[1]
write=sys.argv[1].decode("hex")
task = mach.task_for_pid(int(5152))
value = mach.vm_read(task, 0xDD544, 2)#bytes
print "reading value: " + value.encode("hex")
write = mach.vm_write(task, 0xDD544, write)
print "successfully updated the ammo"evandrix
Metadata
Metadata
Assignees
Labels
No labels