Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- string text = this.textBox1.Text;
- string str = this.textBox2.Text;
- try
- {
- Process.Start("BlackDesert64.exe", string.Concat(this.textBox1.Text, ",", this.textBox2.Text) ?? "");
- }
- catch
- {
- MessageBox.Show("Cannot find BlackDesert64.exe, make sure the launcher is in the bin64 folder.", "Error!");
- return;
- }
- Thread.Sleep(1500);
- string str1 = "steam_api64.dll";
- int processId = this.GetProcessId("BlackDesert64");
- if (processId >= 0)
- {
- IntPtr intPtr = Form1.OpenProcess(2035711, 1, processId);
- this.InjectDLL(intPtr, str1);
- Thread.Sleep(500);
- Process[] processesByName = Process.GetProcessesByName("BlackDesert64");
- uint num = 65536;
- uint num1 = 131072;
- uint num2 = 262144;
- uint num3 = 524288;
- uint num4 = 1048576;
- uint num5 = 4095;
- uint num6 = num | num1 | num2 | num3 | num4 | num5;
- int num7 = Form1.OpenProcess(num6, false, processesByName[0].Id);
- IntPtr baseAddress = processesByName[0].MainModule.BaseAddress;
- Form1.ReadProcessMemory(baseAddress.ToInt64() + (long)43055736, 11, num7);
- if (this.textBox3.Text != null)
- {
- string hex = Form1.ConvertStringToHex(this.textBox3.Text);
- baseAddress = processesByName[0].MainModule.BaseAddress;
- Form1.WriteProcessMemory(baseAddress.ToInt64() + (long)43055736, Form1.StringToByteArray(hex), num7);
- }
- else
- {
- string hex1 = Form1.ConvertStringToHex("127.0.0.1");
- baseAddress = processesByName[0].MainModule.BaseAddress;
- Form1.WriteProcessMemory(baseAddress.ToInt64() + (long)43055736, Form1.StringToByteArray(hex1), num7);
- }
- }
- Application.Exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement