Advertisement
NWPlayer123

addrmap

Jun 15th, 2016
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.83 KB | None | 0 0
  1. from tcpgecko import TCPGecko
  2. import __builtin__
  3.  
  4. def hex(value):
  5.     return __builtin__.hex(value).lstrip("0x").rstrip("L").zfill(8).upper()
  6.  
  7. tcp = TCPGecko("192.168.0.10")
  8. addr = 0x0E000000
  9. OSEffectiveToPhysical = tcp.get_symbol("coreinit.rpl", "OSEffectiveToPhysical")
  10. while (OSEffectiveToPhysical(addr) == 0):
  11.     addr += 0x00100000
  12. print(hex(addr))
  13. while (OSEffectiveToPhysical(addr) != 0):
  14.     addr -= 0x00010000
  15. print(hex(addr))
  16. while (OSEffectiveToPhysical(addr) == 0):
  17.     addr += 0x00001000
  18. print(hex(addr))
  19. while (OSEffectiveToPhysical(addr) != 0):
  20.     addr -= 0x00000100
  21. print(hex(addr))
  22. while (OSEffectiveToPhysical(addr) == 0):
  23.     addr += 0x00000010
  24. print(hex(addr))
  25. while (OSEffectiveToPhysical(addr) != 0):
  26.     addr -= 1
  27. addr += 1
  28. print(hex(addr) + " to 0x10000000")
  29. print("Done! :)")
  30. tcp.s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement