Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.Threading;
  11. using PS3Lib;
  12.  
  13. namespace xpartygo
  14. {
  15.     public partial class Form1 : Form
  16.     {
  17.         private PS3API PS3 = new PS3API();
  18.         public Form1()
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.         private void Form1_Load(object sender, EventArgs e)
  24.         {
  25.  
  26.         }
  27.  
  28.         private void button1_Click(object sender, EventArgs e)
  29.         {
  30.             try
  31.             {
  32.                 PS3.ConnectTarget();
  33.                 PS3.AttachProcess();
  34.                 MessageBox.Show("Connected!");
  35.                 button3.Enabled = true;
  36.                 button2.Enabled = true;
  37.                 PS3.Extension.WriteUInt32(0x3DBD54, 0x480000D8); // Disable Cheat Protection
  38.             }
  39.             catch
  40.             {
  41.                 MessageBox.Show("Failed to connect!");
  42.             }
  43.         }
  44.  
  45.         private void radioButton1_CheckedChanged(object sender, EventArgs e)
  46.         {
  47.             PS3.ChangeAPI(SelectAPI.TargetManager);
  48.         }
  49.  
  50.         private void radioButton2_CheckedChanged(object sender, EventArgs e)
  51.         {
  52.             PS3.ChangeAPI(SelectAPI.ControlConsole);
  53.         }
  54.  
  55.         public void Cbuf_AddText(string text)
  56.         {
  57.             PS3.Extension.WriteString(0x10075000, text); // Write Command Input
  58.             PS3.SetMemory(0x37F80, new byte[] { 0xF8, 0x21, 0xFF, 0x91, 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x38, 0x60, 0x00, 0x00, 0x3C, 0x80, 0x10, 0x07, 0x30, 0x84, 0x50, 0x00, 0x48, 0x2D, 0xBC, 0x81, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 }); // Cbuf_AddText RPC
  59.             Thread.Sleep(100);
  60.             PS3.SetMemory(0x37F80, new byte[] { 0xF8, 0x21, 0xFE, 0xD1, 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x01, 0x40, 0xDB, 0x21, 0x00, 0xF8, 0xDB, 0x41, 0x01, 0x00, 0xDB, 0x61, 0x01, 0x08, 0xDB, 0x81, 0x01, 0x10, 0xDB, 0xA1, 0x01, 0x18, 0xDB, 0xC1, 0x01, 0x20, 0xDB, 0xE1, 0x01, 0x28, 0xFB, 0xE1, 0x00, 0xF0 }); // Restore CG_DrawFPS Function
  61.         }
  62.  
  63.         private void button3_Click(object sender, EventArgs e)
  64.         {
  65.             Cbuf_AddText("party_connectToOthers 0;partyMigrate_disabled 1;party_mergingEnabled 0;xpartygo");
  66.             MessageBox.Show("Has been executed!", "xpartygo", MessageBoxButtons.OK, MessageBoxIcon.Information);
  67.         }
  68.  
  69.         private void button2_Click(object sender, EventArgs e)
  70.         {
  71.             Cbuf_AddText("reset party_connectToOthers;partyMigrate_disabled;party_mergingEnabled");
  72.             MessageBox.Show("Has been executed!", "Dvar Reset", MessageBoxButtons.OK, MessageBoxIcon.Information);
  73.         }
  74.     }
  75. }