Skip to content

Doom Hacking #2

@amlwwalker

Description

@amlwwalker

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions