Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheat outdated #164

Open
Tentware opened this issue May 21, 2023 · 4 comments
Open

Cheat outdated #164

Tentware opened this issue May 21, 2023 · 4 comments

Comments

@Tentware
Copy link

so yeah the cheat is outdated and crashes when joining match what needs to be updated to it

@17314642
Copy link

i changed 0xF8 to 0xF4 and it was no longer crashing

auto verifiedCommands = *(CVerifiedUserCmd **)(reinterpret_cast<uint32_t>(this) + 0xF8);

@lofex1337
Copy link

hey, that didnt work for me
also how did you find this out for you?
when i place pointers somewhere while debugging visual studio doesnt connect with csgo if you know what i mean

@17314642
Copy link

17314642 commented Jul 5, 2023

hey, that didnt work for me also how did you find this out for you? when i place pointers somewhere while debugging visual studio doesnt connect with csgo if you know what i mean

  1. I attached Visual Studio Debugger to CS:GO (In Visual Studio, select Debug > Attach to Process (or press Ctrl+Alt+P) to open the Attach to Process dialog box. - MSDN)
  2. Injected compiled dll
  3. Got a memory exception (or whatever it was called), visual studio automatically pointed problematic line to me.
  4. The line I was pointed to was:
    auto verified = g_Input->GetVerifiedCmd(sequence_number);
  5. Forgot what exception message was saying, but something related to memory access error.
  6. Checked where GetVerifiedCmd() was declared, saw an offset (it was 0xF4), checked whether it was wrong
  7. Turns out it was wrong (this + 0xF4 points to m_pCommands and not m_pVerifiedCommands);
  8. Corrected offset
  9. Bingo!

@lofex1337
Copy link

Thank you so much!!
My error was that I injected before attaching debugger to csgo... (rookie mistake)
I have found out that GetCSWeaponData was the issue.
For some reason my function was outdated to a degree that I couldn't even find the old virtual function number.
Old Function:

CCSWeaponInfo* C_BaseCombatWeapon::GetCSWeaponData()
{
return CallVFunction<CCSWeaponInfo* (__thiscall*)(void*)>(this, 460)(this);
}

Updated one:
CCSWeaponInfo* C_BaseCombatWeapon::GetCSWeaponData()
{
return CallVFunction<CCSWeaponInfo* (__thiscall*)(void*)>(this, 448)(this);
}

Thanks to you I can now properly debug csgo cheats tyvm ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants