void aimbotneck()
ImGui::Notification({ ImGuiToastType_Success, 4000, "WAIT TO INJECT" });
std::vector<DWORD_PTR> addressScan;
std::vector<BYTE> scanAimbot = { 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '?', '?', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xA5, 0x43 }; // AOB aqui
if (!AttackProcess(GetEmulatorRunning()))
{
ImGui::Notification({ ImGuiToastType_Success, 4000, "EMULATOR NOT
FOUND" });
SYSTEM_INFO si;
GetSystemInfo(&si);
DWORD_PTR startAddress = (DWORD_PTR)si.lpMinimumApplicationAddress;
DWORD_PTR endAddress = (DWORD_PTR)si.lpMaximumApplicationAddress;
addressScan.clear();
// Procure padrões na memória
FindPattern(startAddress, endAddress, scanAimbot.data(), addressScan);
if (addressScan.empty())
{
Beep(1000, 900);
ImGui::Notification({ ImGuiToastType_Success, 4000, "AIMBOT NOT
INJECTED" });
}
else {
// Definir mapas para valores originales
std::map<DWORD_PTR, int> originalValues;
std::map<DWORD_PTR, int> originalValues2;
for (auto currentAddress : addressScan) {
DWORD_PTR Nestax = 170L; // Offset de escritura
DWORD_PTR xNesta = 166L; // Offset de lectura
DWORD_PTR addressToSave = currentAddress + Nestax;
DWORD_PTR addressToSave9 = currentAddress + xNesta;
int buffer = 0;
int buffer9 = 0;
// Leer memoria y guardar valores originales
ReadProcessMemory(ProcessHandle, (LPCVOID)addressToSave, &buffer,
sizeof(buffer), nullptr);
originalValues[addressToSave] = buffer;
ReadProcessMemory(ProcessHandle, (LPCVOID)addressToSave9, &buffer9,
sizeof(buffer9), nullptr);
originalValues[addressToSave9] = buffer9;
DWORD_PTR headBytes = currentAddress + xNesta;
DWORD_PTR chestBytes = currentAddress + Nestax;
int ValorCabeça = 0;
int ChestValor = 0;
ReadProcessMemory(ProcessHandle, (LPCVOID)headBytes, &ValorCabeça,
sizeof(ValorCabeça), nullptr);
ReadProcessMemory(ProcessHandle, (LPCVOID)chestBytes, &ChestValor,
sizeof(ChestValor), nullptr);
WriteProcessMemory(ProcessHandle, (LPVOID)chestBytes, &ValorCabeça,
sizeof(ValorCabeça), nullptr);
WriteProcessMemory(ProcessHandle, (LPVOID)headBytes, &ChestValor,
sizeof(ChestValor), nullptr);
int buffer1 = 0;
int buffer19 = 0;
ReadProcessMemory(ProcessHandle, (LPCVOID)addressToSave, &buffer1,
sizeof(buffer1), nullptr);
originalValues2[addressToSave] = buffer1;
ReadProcessMemory(ProcessHandle, (LPCVOID)addressToSave9, &buffer19,
sizeof(buffer19), nullptr);
originalValues2[addressToSave9] = buffer19;
ImGui::Notification({ ImGuiToastType_Success, 4000, "AIMBOT HEAD
ACTIVATED" });
sndPlaySound("C:\\Windows\\l3whjb.wav", SND_ASYNC | SND_FILENAME);
}
}
CloseHandle(ProcessHandle);
}