Patching Software Underclocks (Cheat Engine, Game Speed Changer, etc)

Page 1 of 3 123 LastLast
Results 1 to 15 of 36
  1. #1
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    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
    Last edited by KillerStefan; 28-10-10 at 04:00 AM. Reason: Title fixed.


  2. #2
    Ninja Goblin HellSniper is offline
    MemberRank
    Feb 2009 Join Date
    GermanyLocation
    1,791Posts

    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

  3. #3
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Quote Originally Posted by HellSniper View Post
    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.

  4. #4
    Freelance GunZ Developer Touchwise is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    754Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Hmm thank you jacob this is usefull

  5. #5
    Veni, Vidi, Vici Arcelor is offline
    MemberRank
    Jan 2010 Join Date
    Delhi, IndiaLocation
    1,763Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    yay now make rapeguard open source =D.

  6. #6
    @ your moms bed thajj is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    647Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    oh dam, thats good. really usefull, VB right?

  7. #7
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Quote Originally Posted by thajj View Post
    oh dam, thats good. really usefull, VB right?
    Google

  8. #8
    @ your moms bed thajj is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    647Posts

    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,

  9. #9
    Freelance GunZ Developer Touchwise is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    754Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Thajj you call your self a developer? even a idiot sees this isn't VB

  10. #10

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Thanks for the thread wrapper.

  11. #11
    Account Upgraded | Title Enabled! 00niels00 is offline
    MemberRank
    Sep 2008 Join Date
    The NetherlandsLocation
    1,041Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Quote Originally Posted by thajj View Post
    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.).

  12. #12
    Proficient Member Analise is offline
    MemberRank
    Oct 2010 Join Date
    181Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Thanks, but how do I compile it?

  13. #13
    Valued Member 4862159753 is offline
    MemberRank
    Jan 2009 Join Date
    ThailandLocation
    122Posts

    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

  14. #14
    @ your moms bed thajj is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    647Posts

    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,
    Last edited by Phoenix; 27-10-10 at 03:39 PM.

  15. #15
    Valued Member 4862159753 is offline
    MemberRank
    Jan 2009 Join Date
    ThailandLocation
    122Posts

    Re: Patching Software Underclocks (Cheat Engine, Game Booster, etc)

    Quote Originally Posted by thajj View Post
    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.



Page 1 of 3 123 LastLast

Advertisement