Advertisement
rdsedmundo

x_x

Aug 27th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.13 KB | None | 0 0
  1.  
  2.  
  3.         private void button15_Click(object sender, EventArgs e)
  4.         {
  5.             if (openFileDialog1.ShowDialog() == DialogResult.OK && IsProcessOpen("PointBlank"))
  6.             {
  7.                 Process[] pid = Process.GetProcessesByName("PointBlank");
  8.                 black.OpenProcessAndThread(pid[0].Id);
  9.                 if (black.IsProcessOpen)
  10.                 {
  11.                     /*           foreach (ProcessThread threads in pid[0].Threads)
  12.                                {
  13.                                    int thread_id = threads.Id;
  14.                                    if (thread_id == 4264)
  15.                                    {
  16.                                        // black.SuspendThread(threads);
  17.                                        alert("Thread suspended");
  18.                                        //       black.SuspendThread(thread_name.StartAddress);
  19.                                    }
  20.                                }
  21.                      */
  22.                     black.InjectDllCreateThread(openFileDialog1.FileName);
  23.                     Environment.Exit(0);
  24.                 }
  25.             }
  26.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement