Advertisement
BaSs_HaXoR

Get pointer, and WriteString to Memory C#

Apr 2nd, 2014
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.31 KB | None | 0 0
  1.   public uint ReadUInt(uint address)
  2.         {
  3.             byte[] buff = new byte[4]; //declaring buff as byte, and byte buff = 4 bytes long [4]
  4.             PS3.GetMemory(address, buff);// Ps3.Getmemory(youraddress, buff) which buff = 4 bytes long
  5.             Array.Reverse(buff); // reverses the 4 bytes from array, so
  6.             uint val = BitConverter.ToUInt32(buff, 0); //Converts buff from byte to Uint32
  7.             return val;//val = your output :D
  8.         }
  9. //entry = 0x104F7320
  10. //player.data name = entry + 0x1488
  11. //so PS3.Extension.WriteString(set the 4 grabbed bytes @ (0x104F7320) + 0x1488)
  12. //PS3.Extension.WriteString(ReadUint(0x104F7320) + 0x1488));
  13.  
  14.         void ChangeName(string name)
  15.         {
  16.             //or PS3.Extension.WriteString(Ps3.Extension.ReadUint32(playerdata.name), name);
  17.             PS3.Extension.WriteString(ReadUint(0x104F7320) + 0x1488));
  18. //PS3.Extension.Writestring -->>>  (Run ReadUint "Gets Pointer for"(address) + "adds difference" 0x1488));
  19.         }
  20.  
  21.  
  22.         private void flowButton5_Click(object sender, EventArgs e)
  23.         {
  24.             ChangeName("Thanks to badluckbrian!");
  25.             //PS3.Extension.Writestring(address, yourstring/text);
  26.         }
  27.  
  28. ///THANKS BLB (:D)
  29. ///Credits: badluckbrian, BaSs_HaXoR, and Lanander23/Outsider
  30. ///http://i.imgur.com/cP6Xh.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement