Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         textBox2.Text = openFileDialog1.FileName;
         if (File.Exists(textBox1.Text) && File.Exists(textBox2.Text))
         {
             EasyHookWrapper.Start(textBox1.Text, textBox2.Text);
         }
     }
 }
Exemple #2
0
        public static void Start(string exeFilename, string reghiveFile)
        {
            // use native win32 methods startup a process in suspended mode
            // inject hooking lib
            int             processId = 0;
            string          paramsXml = "<xml>reghiveFile</xml>";
            EasyHookWrapper ehw       = new EasyHookWrapper();

            ehw.Inject(processId, paramsXml);
            // after injection of hooks the process will start automatically.
        }