Hello, i'm trying to make my first send hack without asm inline code but the client crashes at injection and i dont know why :feelsbadman:
That's the code for calling the send attack function i'm fighting with:
and that's the main function
this is the code in cheat engine
[Only registered and activated users can see links. Click Here To Register...]
if someone has any ideea i'm all ears
That's the code for calling the send attack function i'm fighting with:
Code:
DWORD baseaddr = (DWORD)GetModuleHandleW(NULL);
uint32_t targetvid = ((baseaddr + 0x000B4EF3) + (baseaddr + 0x000FA4FA));
uint8_t push0 = (uint8_t)(baseaddr + 0x000F7C66);
uint32_t movlast = (uint32_t)(baseaddr + 0x000F7C67);
void SendAttackPacket(const uint32_t movlast, const uint8_t push0, const uint32_t targetvid)
{
typedef bool(__thiscall* tSendAttackPacket)(int, const uint32_t, const uint8_t, const uint32_t);
const auto fSendAttackPacket = reinterpret_cast<tSendAttackPacket>(baseaddr + 0x000F7C6A); /* SendAttackPacket Function Call */
if (fSendAttackPacket)
fSendAttackPacket(*reinterpret_cast<uintptr_t*>(baseaddr + 0x000F7C57), movlast, push0, targetvid); /* CNetworkStream Class Pointer Instance */
}
Code:
void(Main)
while (true)
{
SendAttackPacket(movlast, push0, targetvid);
Sleep(10);
}
[Only registered and activated users can see links. Click Here To Register...]
if someone has any ideea i'm all ears