Guest User

Black Ops 2 GSC PS3 Injector (RPC WAY)

a guest
Sep 13th, 2014
1,334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1.     public static byte[] Bytes;
  2.         public static int ByteLength;
  3.         public static int MALLOC = 0x10050000;
  4.  
  5.     private void button1_Click(object sender, EventArgs e)
  6.         {
  7.             var file = new OpenFileDialog { Filter = "GSC File|*.gsc" };
  8.             uint offset = InjectTolocation(textBox1.Text);
  9.             if (file.ShowDialog() == DialogResult.OK)
  10.             {
  11.                 string fileName = file.FileName;
  12.                 try
  13.                 {
  14.                     Bytes = System.IO.File.ReadAllBytes(fileName);
  15.                     ByteLength = Bytes.Length;
  16.                 }
  17.                 catch (System.IO.IOException)
  18.                 {
  19.                     this.Close();
  20.                 }
  21.             }
  22.             int WriteOffset = SpacetoInject();
  23.             PS3.SetMemory((uint)WriteOffset, Bytes);
  24.             PS3.Extensions.WriteInt32(offset + 8, WriteOffset);
  25.             MessageBox.Show("GSC Injected");
  26.         }
  27.  
  28.     public static uint InjectTolocation(string location)
  29.         {
  30.             RPC.Call(0x18ac04, new object[] { 0x10040000, 0x33, location, 1, -1 });
  31.             return PS3.Extensions.ReadUInt32(0x10040000);
  32.         }
  33.  
  34.         public static int SpacetoInject()
  35.         {
  36.             return (MALLOC = (MALLOC + ByteLength) + 100);
  37.         }
Advertisement
Add Comment
Please, Sign In to add comment