0% found this document useful (0 votes)
7 views2 pages

Dawd

Dawd

Uploaded by

palhacinpessoal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Dawd

Dawd

Uploaded by

palhacinpessoal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

bool Crasher = false;

typedef void(__thiscall* ptrDoWastedCheck)(void* ECX, void* damagerID, char


ucWeapon, char ucBodyPiece, unsigned int animGroup, unsigned int animID);
ptrDoWastedCheck callDoWastedCheck = nullptr;
void __fastcall DoWastedCheck(void* ECX, void *EDX, void* damagerID, char ucWeapon,
char ucBodyPiece, unsigned int animGroup, unsigned int animID)
{
if (Crasher)
{
animID = 9068; // crasher
Crasher = false;
}
callDoWastedCheck(ECX, damagerID, ucWeapon, ucBodyPiece, animGroup, animID);
}
typedef void (__thiscall* ptrKill)(void *ECX, eWeaponType weaponType, char
ucBodypart, bool bStealth, bool bSetDirectlyDead, unsigned int animGroup, unsigned
int animID);
ptrKill callKill = nullptr;
void __fastcall Kill(void* ECX, void* EDX, eWeaponType weaponType, char ucBodypart,
bool bStealth, bool bSetDirectlyDead, unsigned int animGroup, unsigned int animID)
{
if (animID == 9068) animID = 15; // anti-crasher
callKill(ECX, weaponType, ucBodypart, bStealth, bSetDirectlyDead, animGroup,
animID);
}

void SigScanner()
{
SigScan scan;
callDoWastedCheck = (ptrDoWastedCheck)scan.FindPattern(xorstr_("client.dll"),
xorstr_("\x55\x8B\xEC\x6A\xFF\x68\x00\x00\x00\x00\x64\xA1\x00\x00\x00\x00\x50\
x83\xEC\x3C\x53\x56\x57\xA1\x00\x00\x00\x00\x33\xC5\x50\x8D\x45\xF4\x64\xA3\x00\
x00\x00\x00\x8B\xF9\x8B\x8F"),
xorstr_("xxxxxx????xxxxxxxxxxxxxx????xxxxxxxxxxxxxxxx"));
if (callDoWastedCheck != nullptr)
{
MH_RemoveHook(callDoWastedCheck);
MH_CreateHook(callDoWastedCheck, &DoWastedCheck,
reinterpret_cast<LPVOID*>(&callDoWastedCheck));
MH_EnableHook(MH_ALL_HOOKS);
}
callKill = (ptrKill)scan.FindPattern(xorstr_("client.dll"),
xorstr_("\x55\x8B\xEC\x83\xEC\x30\x53\x8B"),
xorstr_("xxxxxxxx"));
if (callKill != nullptr)
{
MH_RemoveHook(callKill);
MH_CreateHook(callKill, &Kill, reinterpret_cast<LPVOID*>(&callKill));
MH_EnableHook(MH_ALL_HOOKS);
}
}

void KeyHook()
{
while (true)
{
if (GetAsyncKeyState(VK_DELETE))
{
Crasher = true;
DWORD PEDSELF = *(DWORD*)0xB6F5F0;
*(float*)(PEDSELF + 0x540) = 0.0f;
}
Sleep(150);
}
}
```

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy