项目作者: jrsa

项目描述 :
convenient wrapper around pyMach using structs. grown out of repl-based exploration and editing of other processes memory (macOS only, mach refers to its kernel)
高级语言: Python
项目地址: git://github.com/jrsa/mem.git
创建时间: 2018-01-24T21:36:20Z
项目社区:https://github.com/jrsa/mem

开源协议:

下载


mem

convenient wrapper around pyMach using structs. grown out of repl-based exploration and editing of other processes memory. requires pymach and execution as superuser

  1. from memory import Memory
  2. import sys
  3. # any process id
  4. pid = int(sys.argv[1])
  5. m = Memory(pid)
  6. # read an unsigned integer from any valid address in the foriegn process
  7. address = 0xDEADBEEF
  8. value = m.read('I', address)
  9. # apply hax
  10. value = value + 1
  11. # write the modified value back
  12. m.write('I', address, value)