Injecting c++ with c# injector into csgo
Hey guys,
This is really frustrating me now, I coded a c++ csgo hack (it is a .dll), and now I am trying to code an injector that manual maps the dll. So I have the injector working for basically every 32bit process, but CSGO. Could someone please help me! Thank you
This is really frustrating me now, I coded a c++ csgo hack (it is a .dll), and now I am trying to code an injector that manual maps the dll. So I have the injector working for basically every 32bit process, but CSGO. Could someone please help me! Thank you

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using JLibrary.PortableExecutable;
using System.Diagnostics;
using InjectionLibrary;
namespace WindowsFormsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
var injector = InjectionMethod.Create(InjectionMethodType.ManualM ap);
var processId = Process.GetProcessesByName("csgo")[0].Id;
var hModule = IntPtr.Zero;
using (var img = new PortableExecutable(Properties.Resources.FreeLancer ))
hModule = injector.Inject(img, processId);
if (hModule != IntPtr.Zero)
{
// injection was successful
MessageBox.Show("done");
}
else
{
// injection failed
if (injector.GetLastError() != null)
MessageBox.Show(injector.GetLastError().Message);
}
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using JLibrary.PortableExecutable;
using System.Diagnostics;
using InjectionLibrary;
namespace WindowsFormsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
var injector = InjectionMethod.Create(InjectionMethodType.ManualM ap);
var processId = Process.GetProcessesByName("csgo")[0].Id;
var hModule = IntPtr.Zero;
using (var img = new PortableExecutable(Properties.Resources.FreeLancer ))
hModule = injector.Inject(img, processId);
if (hModule != IntPtr.Zero)
{
// injection was successful
MessageBox.Show("done");
}
else
{
// injection failed
if (injector.GetLastError() != null)
MessageBox.Show(injector.GetLastError().Message);
}
}
}
}