-
Patching Software Underclocks (Cheat Engine, Game Speed Changer, etc)
This is the exact method from RapeGuard.
Code:
__forceinline void KillGunz()
{
_asm
{
XOR EAX,EAX
XOR ECX,ECX
mov dword ptr ds: [esp+4],0
mov eax, dword ptr ds: [0x6272B0]
jmp eax
SHL ECX,9
SHR EAX,7
OR EAX,ECX
NOT ECX
AND EAX,1
DIV EAX
retn
}
}
bool IsAddressHooked(unsigned long address)
{
BYTE* offsetValue = (BYTE*)address;
return (*offsetValue == 0xE8 || *offsetValue == 0xE9 || *offsetValue == 0x7E || *offsetValue == 0x74 || *offsetValue == 0xFF);
}
void UnderclockThread()
{
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST);
SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_BEGIN);
DWORD getTickCount = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetTickCount");
DWORD queryPerformanceCounter = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "QueryPerformanceCounter");
while(true)
{
if (IsAddressHooked(getTickCount) || IsAddressHooked(queryPerformanceCounter) || GetModuleHandleA ("SpeedHack.dll") != NULL || GetModuleHandleA ("MyHookDll.dll") != NULL)
{
HackDetected(Underclocking);
Sleep(5000);
KillGunz();
}
Sleep (5000);
}
}
Thread Wrapper Class:
Code:
#pragma once
#ifndef _THREAD_H_
#define _THREAD_H_
#include <Windows.h>
typedef void ThreadFunction();
class Thread
{
public:
enum ThreadState
{
TS_NONE,
TS_RUNNING,
TS_SUSPENDED
};
public:
Thread(ThreadFunction _thread)
{
threadHandle = CreateThread (NULL, NULL, (LPTHREAD_START_ROUTINE)_thread, NULL, NULL, &threadId);
}
DWORD GetThreadId() { return threadId; }
HANDLE GetHandle() { return threadHandle; }
int GetState()
{
DWORD status = 0;
BOOL exitCode = GetExitCodeThread (threadHandle, &status);
if (!exitCode)
return TS_NONE;
if (status != STILL_ACTIVE)
return TS_SUSPENDED;
return TS_RUNNING;
}
private:
DWORD threadId;
HANDLE threadHandle;
};
#endif
Usage:
Global Vars:
Code:
Thread* underclockThread = NULL;
OnAttach / DllMain:
Code:
underclockThread = new Thread(UnderclockThread);
Credits: Me
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Wait, since when was Game Booster a "Underclocking" programm ...?
Its just closing not essential windows services and defrags the memory ó.O
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Quote:
Originally Posted by
HellSniper
Wait, since when was Game Booster a "Underclocking" programm ...?
Its just closing not essential windows services and defrags the memory ó.O
Whoops, I meant Game Speed Changer, lol.
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Hmm thank you jacob this is usefull
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
yay now make rapeguard open source =D.
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
oh dam, thats good. really usefull, VB right?
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Quote:
Originally Posted by
thajj
oh dam, thats good. really usefull, VB right?
Google
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
wtf...??? what you mean with that im just asking if he made it in VB = Visual Basic, so i know i can compile it in VB, some people use Netbean or something else.,
jj,
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Thajj you call your self a developer? even a idiot sees this isn't VB
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Thanks for the thread wrapper.
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Quote:
Originally Posted by
thajj
wtf...??? what you mean with that im just asking if he made it in VB = Visual Basic, so i know i can compile it in VB, some people use Netbean or something else.,
jj,
Watch the structure. VB doesn't use brackets.(I'm not sure about this, but according to some scripts I've seen it doesn't use brackets.).
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Thanks, but how do I compile it?
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Sorry about my "noob" question.
Someone tell me please how to do and how to use it.
and Please don't dispraise me
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
you need to know with what he created it, so you know yu can compile it with that programm, wtf i was asking i never saied i was sure... and i am into item/map/xml/html/php developing not into asm/vb/c++ and all the others... dam dont get so mad if you dont even know what i do..
relax touch..
jj,
-
Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)
Quote:
Originally Posted by
thajj
you need to know with what he created it, so you know yu can compile it with that programm, wtf i was asking i never saied i was sure... and i am into item/map/xml/html/php developing not into asm/vb/c++ and all the others... dam dont get so mad if you dont even know what i do..
relax touch..
jj,
Thanks but
I don't know what's he used.
and
I don't have knowledge about C++ ASM or etc. anymore.
So i can't compile it.