Новичок
Новичок
- Статус
- Оффлайн
- Регистрация
- 31 Дек 2020
- Сообщения
- 1
- Реакции
- 0
Can someone help me with this? this injection method is not working for me :/
C++:
string mainpath = "C:\\Windows\\cheat.dll";
wb.DownloadFile("my dll download link :)", mainpath);
var name = "csgo";
var target = Process.GetProcessesByName(name).FirstOrDefault();
var path = mainpath;
var file = File.ReadAllBytes(path);
//Checking if the DLL isn't found
if (!File.Exists(path))
{
MessageBox.Show("Whoops! Something Went Wrong");
return;
}
//Injection, just leave this alone if you are a beginner
var injector = new ManualMapInjector(target) { AsyncInjection = true };
label2.Text = $"hmodule = 0x{injector.Inject(file).ToInt64():x8}";
if (System.IO.File.Exists(mainpath)) //Checking if the DLL exists
{
System.IO.File.Delete(mainpath); //Deleting the DLL
}