Advertisement
BaSs_HaXoR

.SPRX Writing into COD Locations [Non-Host]

Jul 29th, 2014
741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. //Function: [its a sys call]
  2. //Thread: http://www.nextgenupdate.com/forums/ps3-cheats-customization/751410-sprx-writing-into-cod-locations-non-host-stuff-2.html
  3.  
  4. int32_t write_process(uint64_t ea, const void * data, uint32_t size)
  5.     {
  6.         // 905 = sys_call number
  7.                 //sys_process_getpid() = pid
  8.                 // ea = offset
  9.                // size = lenght of the bytes
  10.                //data = bytes
  11.         system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
  12.         return_to_user_prog(int32_t);
  13.     }
  14. //How to use: [red boxes]
  15.  
  16.                 uint32_t bytes[1]; // uint32_t = Uint32[]
  17.                 bytes[0] = 0x38C0FFFF; // bytes for red boxes = 0x38,0xC0,0xFF,0xFF
  18.                 write_process(0x000834D0, &bytes, 4); // first argutment = offset │ second are the variable │ thiird the
  19. //lenght of the bytes so 0x38 will be 1 and 0x0F0F will be 2
  20.  
  21.  
  22. //use a character array instead of an unsigned interger array because with a character array you can do as many different bytes as you //want without having to make a bunch of different arrays and join them all together so example
  23.  
  24. char[] lotsofbytes = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 };
  25. char bytes[] = { 0x38, 0x60, 0x00, 0x01 };
  26. write_process(0x783E0, &bytes, 4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement