Advertisement
Guest User

bdo

a guest
May 27th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.72 KB | None | 0 0
  1.  
  2.         private void button1_Click(object sender, EventArgs e)
  3.         {
  4.             string text = this.textBox1.Text;
  5.             string str = this.textBox2.Text;
  6.             try
  7.             {
  8.                 Process.Start("BlackDesert64.exe", string.Concat(this.textBox1.Text, ",", this.textBox2.Text) ?? "");
  9.             }
  10.             catch
  11.             {
  12.                 MessageBox.Show("Cannot find BlackDesert64.exe, make sure the launcher is in the bin64 folder.", "Error!");
  13.                 return;
  14.             }
  15.             Thread.Sleep(1500);
  16.             string str1 = "steam_api64.dll";
  17.             int processId = this.GetProcessId("BlackDesert64");
  18.             if (processId >= 0)
  19.             {
  20.                 IntPtr intPtr = Form1.OpenProcess(2035711, 1, processId);
  21.                 this.InjectDLL(intPtr, str1);
  22.                 Thread.Sleep(500);
  23.                 Process[] processesByName = Process.GetProcessesByName("BlackDesert64");
  24.                 uint num = 65536;
  25.                 uint num1 = 131072;
  26.                 uint num2 = 262144;
  27.                 uint num3 = 524288;
  28.                 uint num4 = 1048576;
  29.                 uint num5 = 4095;
  30.                 uint num6 = num | num1 | num2 | num3 | num4 | num5;
  31.                 int num7 = Form1.OpenProcess(num6, false, processesByName[0].Id);
  32.                 IntPtr baseAddress = processesByName[0].MainModule.BaseAddress;
  33.                 Form1.ReadProcessMemory(baseAddress.ToInt64() + (long)43055736, 11, num7);
  34.                 if (this.textBox3.Text != null)
  35.                 {
  36.                     string hex = Form1.ConvertStringToHex(this.textBox3.Text);
  37.                     baseAddress = processesByName[0].MainModule.BaseAddress;
  38.                     Form1.WriteProcessMemory(baseAddress.ToInt64() + (long)43055736, Form1.StringToByteArray(hex), num7);
  39.                 }
  40.                 else
  41.                 {
  42.                     string hex1 = Form1.ConvertStringToHex("127.0.0.1");
  43.                     baseAddress = processesByName[0].MainModule.BaseAddress;
  44.                     Form1.WriteProcessMemory(baseAddress.ToInt64() + (long)43055736, Form1.StringToByteArray(hex1), num7);
  45.                 }
  46.             }
  47.             Application.Exit();
  48.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement