Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Refrences
- using PS3Lib;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Text;
- using System.Windows.Forms;
- //CONNECT CODE
- List<CCAPI.ConsoleInfo> consoleList = Form1.PS3.GetConsoleList();
- if (Form1.PS3.SUCCESS(Form1.PS3.ConnectTarget(consoleList[0].Ip)))
- {
- MessageBox.Show("Connected with default target!");
- this.attachToolStripMenuItem.Enabled = true;
- }
- //Put as your ATTACH CODE
- if (Form1.PS3.SUCCESS(Form1.PS3.AttachProcess()))
- {
- Form1.PS3.SetMemory(8036832u, new byte[]
- {
- 78,
- 128,
- 0,
- 32
- });
- Form1.PS3.SetMemory(8036836u, new byte[]
- {
- 124,
- 8,
- 2,
- 166,
- 248,
- 1,
- 0,
- 128,
- 60,
- 96,
- 16,
- 2,
- 129,
- 131,
- 0,
- 76,
- 44,
- 12,
- 0,
- 0,
- 65,
- 130,
- 0,
- 100,
- 128,
- 131,
- 0,
- 4,
- 128,
- 163,
- 0,
- 8,
- 128,
- 195,
- 0,
- 12,
- 128,
- 227,
- 0,
- 16,
- 129,
- 3,
- 0,
- 20,
- 129,
- 35,
- 0,
- 24,
- 129,
- 67,
- 0,
- 28,
- 129,
- 99,
- 0,
- 32,
- 192,
- 35,
- 0,
- 36,
- 192,
- 67,
- 0,
- 40,
- 192,
- 99,
- 0,
- 44,
- 192,
- 131,
- 0,
- 48,
- 192,
- 163,
- 0,
- 52,
- 192,
- 195,
- 0,
- 56,
- 192,
- 227,
- 0,
- 60,
- 193,
- 3,
- 0,
- 64,
- 193,
- 35,
- 0,
- 72,
- 128,
- 99,
- 0,
- 0,
- 125,
- 137,
- 3,
- 166,
- 78,
- 128,
- 4,
- 33,
- 60,
- 128,
- 16,
- 2,
- 56,
- 160,
- 0,
- 0,
- 144,
- 164,
- 0,
- 76,
- 144,
- 100,
- 0,
- 80,
- 232,
- 1,
- 0,
- 128,
- 124,
- 8,
- 3,
- 166,
- 56,
- 33,
- 0,
- 112,
- 78,
- 128,
- 0,
- 32
- });
- CCAPI arg_7C_0 = Form1.PS3;
- uint arg_7C_1 = 268566528u;
- byte[] buffer = new byte[10324];
- arg_7C_0.SetMemory(arg_7C_1, buffer);
- Form1.PS3.SetMemory(8036832u, new byte[]
- {
- 248,
- 33,
- 255,
- 145
- });
- MessageBox.Show("Attached the process!");
- }
- //Put in a button
- if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- CCAPI arg_3B_0 = Form1.PS3;
- uint arg_3B_1 = 268566528u;
- byte[] array = new byte[4];
- array[0] = 16;
- array[1] = 4;
- arg_3B_0.SetMemory(arg_3B_1, array);
- Form1.PS3.SetMemory(268566532u, new byte[]
- {
- 0,
- 0,
- 0,
- 51
- });
- byte[] bytes = Encoding.UTF8.GetBytes(this.textBox1.Text + "\0");
- Form1.PS3.SetMemory(268574720u, bytes);
- Form1.PS3.SetMemory(268566536u, new byte[]
- {
- 16,
- 2,
- 32,
- 0
- });
- Form1.PS3.SetMemory(268566540u, new byte[]
- {
- 0,
- 0,
- 0,
- 1
- });
- Form1.PS3.SetMemory(268566544u, new byte[]
- {
- 255,
- 255,
- 255,
- 255
- });
- Form1.PS3.SetMemory(268566604u, new byte[]
- {
- 0,
- 24,
- 172,
- 4
- });
- byte[] array2 = new byte[4];
- Form1.PS3.GetMemory(268566608u, array2);
- Array.Reverse(array2);
- byte[] buffer = File.ReadAllBytes(this.openFileDialog1.FileName);
- Form1.PS3.SetMemory(268789780u, buffer);
- uint offset = BitConverter.ToUInt32(array2, 0) + 8u;
- Form1.PS3.SetMemory(offset, new byte[]
- {
- 16,
- 5,
- 104,
- 20
- });
- MessageBox.Show("GSC File injected!" + offset.ToString("X8"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement