Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Doom Hacking #2

Open
amlwwalker opened this issue Aug 15, 2016 · 0 comments
Open

Doom Hacking #2

amlwwalker opened this issue Aug 15, 2016 · 0 comments

Comments

@amlwwalker
Copy link

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"
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant