[x]treme
05-04-2009, 09:36 PM
I'm looking for a Auto injector complete source code, this is my source code. Much love if possible to add Auto injector ^^
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Security.Cryptography;
using System.Net;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Media;
namespace xPub
{
public partial class Form1 : Form
{
int ID = 0;
String GameDll = "TNT Hack.dll"; //change this to your d3d name.
String GameName = "crossfire"; //change this to your gamename //dont add .exe to the name
String error;
Thread t_inject;
Process[] tempProcesses;
Process proc;
public delegate void Updater();
public Form1()
{
InitializeComponent();
}
void WaitInject()
{
while (ID == 0)
{
tempProcesses = Process.GetProcesses();
foreach (Process pro in tempProcesses)
{
if (pro.ProcessName == GameName)
{
ID = pro.Id;
continue;
}
}
}
proc = Process.GetProcessById(ID);
bool Result = Inject.DoInject(proc, Environment.CurrentDirectory + "\\" + GameDll, out error);
if (!Result) MessageBox.Show("Hacks/Injector By DxT", "Injector");
if (error != "") { MessageBox.Show(error); }
else { Invoke(new Updater(this.Close)); }
}
private void button1_Click(object sender, EventArgs e)
{
t_inject = new Thread(this.WaitInject);
t_inject.Start();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Security.Cryptography;
using System.Net;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Media;
namespace xPub
{
public partial class Form1 : Form
{
int ID = 0;
String GameDll = "TNT Hack.dll"; //change this to your d3d name.
String GameName = "crossfire"; //change this to your gamename //dont add .exe to the name
String error;
Thread t_inject;
Process[] tempProcesses;
Process proc;
public delegate void Updater();
public Form1()
{
InitializeComponent();
}
void WaitInject()
{
while (ID == 0)
{
tempProcesses = Process.GetProcesses();
foreach (Process pro in tempProcesses)
{
if (pro.ProcessName == GameName)
{
ID = pro.Id;
continue;
}
}
}
proc = Process.GetProcessById(ID);
bool Result = Inject.DoInject(proc, Environment.CurrentDirectory + "\\" + GameDll, out error);
if (!Result) MessageBox.Show("Hacks/Injector By DxT", "Injector");
if (error != "") { MessageBox.Show(error); }
else { Invoke(new Updater(this.Close)); }
}
private void button1_Click(object sender, EventArgs e)
{
t_inject = new Thread(this.WaitInject);
t_inject.Start();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}