Q-Protect Anti hack source code

Page 1 of 2 12 LastLast
Results 1 to 25 of 30
  1. #1
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Q-Protect Anti hack source code

    Hi,

    I thought I release the source code now as I promised it ones
    I'm not working on this project anymore so no reason to keep it for myself.
    Well I hope you all can use it well or even improve it if you like too
    If you are going to use this source don't forget to give me some credits

    Source code from my Flyff Source

    Functions : [C++] qProtect - Pastebin.com

    How I execute them
    Code:
    #ifdef __QUGET_NON_PROTECT_DLL_VERSION
    HANDLE_QUGET_ANTI_PACKET = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)QUGET_ANTI_PACKET, 0, 0, 0 );
    HANDLE_QUGET_ANTI_SPEED = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)QUGET_ANTI_SPEED, 0, 0, 0 );
    HANDLE_QUGET_ANTI_WINM = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)QUGET_ANTI_WINM, 0, 0, 0 );
    #endif

    This source can be used for most games
    Lol its not really big its simple and messy in my view.

    Don't forget to like this post for the release
    Last edited by MisterKid; 20-05-13 at 01:00 PM.


  2. #2
    Account Upgraded | Title Enabled! AngraMainyu is offline
    MemberRank
    May 2011 Join Date
    445Posts

    Re: Q-Protect Anti hack source code

    If I can break your code by modifying the string table, you're doing it wrong.

    Edit: Proxy DLLs.

  3. #3
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    Then improve it? Source is there:p
    You don't get the goal for releasing a source code?
    Last edited by MisterKid; 22-12-11 at 09:15 PM.

  4. #4
    Ginger by design. jMerliN is offline
    MemberRank
    Feb 2007 Join Date
    2,497Posts

    Re: Q-Protect Anti hack source code

    That's like releasing a hello world as an operating system example and then when someone says "this isn't an operating system" you reply "so improve it, isn't that the point of releasing the source code?"

    /facepalm.

  5. #5
    Account Upgraded | Title Enabled! AngraMainyu is offline
    MemberRank
    May 2011 Join Date
    445Posts

    Re: Q-Protect Anti hack source code

    Quote Originally Posted by MisterKid View Post
    Then improve it? Source is there:p
    You don't get the goal for releasing a source code?
    That implies that there's something of substance to begin with. That's not to say that your code isn't useful -- it has the makings of a packet editor already -- just that if it cannot protect itself from reversing, it won't protect a game client.

  6. #6
    i sell platypus Improved is offline
    MemberRank
    Jun 2009 Join Date
    DenmarkLocation
    2,819Posts

    Re: Q-Protect Anti hack source code

    Anywho anyone willing to improve the anti-hack can just go ahead, the source was probably released probably due to it lacking interest for the OP and therefor decide to release it rather than working on it.

  7. #7
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    It helps some people that was my goal. Or it makes people wanting to do more into anti-hacking.
    I didn't really like it so i gave up on it a long time ago. And I promised to release the source ones so I did.

    @people complaining.
    Read
    "Well I hope you all can use it well or even improve it if you like too "
    Lol its not really big its simple and messy in my view.

  8. #8
    Flyff Developer ShadowDragon is offline
    MemberRank
    Apr 2009 Join Date
    1,915Posts

    Re: Q-Protect Anti hack source code

    Well, I've been semi-waiting for this, merely because I'm interested in how it works (whether or not it's perfect)

    Btw, think you put enough smilies in the first post? o.o

  9. #9
    Proficient Member mikederoobs is offline
    MemberRank
    Jul 2009 Join Date
    System32Location
    188Posts

    Re: Q-Protect Anti hack source code

    Thanks For the Download I will try to make the antihack better

  10. #10
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    Bump.
    The non sourced thread is getting some post and I get bugged on msn/pm's
    I do not continue so use the source!

  11. #11
    Flyff Developer Intelligence is offline
    MemberRank
    Oct 2011 Join Date
    United KingdomLocation
    1,401Posts

    Re: Q-Protect Anti hack source code

    Is this source updated or not?

  12. #12
    i sell platypus Improved is offline
    MemberRank
    Jun 2009 Join Date
    DenmarkLocation
    2,819Posts

    Re: Q-Protect Anti hack source code

    Quote Originally Posted by Intelligence View Post
    Is this source updated or not?
    updated in which way? It haven't been touched since release if that's what you're asking.

  13. #13
    Flyff Developer Intelligence is offline
    MemberRank
    Oct 2011 Join Date
    United KingdomLocation
    1,401Posts

    Re: Q-Protect Anti hack source code

    Ahhh ok. I mean is, the one that developing by misterkid is q-protect 4 and he said in his last post (I think) in the thread were q-protect 4 is 'go to the source of it'. That's why I came here.

  14. #14
    Flyff Developer ShadowDragon is offline
    MemberRank
    Apr 2009 Join Date
    1,915Posts

    Re: Q-Protect Anti hack source code

    I haven't looked at it, but this was released after q-protect v4, so I'm guessing this is the source for that version.

  15. #15
    Flyff Developer Intelligence is offline
    MemberRank
    Oct 2011 Join Date
    United KingdomLocation
    1,401Posts

    Re: Q-Protect Anti hack source code

    Alright and I see that this has been released after qpro 4.

  16. #16
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    the source is the latest version :P

  17. #17
    Not working on UnitedFlyf Mootie is offline
    MemberRank
    Apr 2009 Join Date
    1,589Posts

    Re: Q-Protect Anti hack source code

    Uhhhh...

    #1 - Threading in an antihack isn't usually good unless done properly(which requires time checking by the main thread). A hacker can simply suspend your checking threads and your antihack is bypassed. You should have it check in a function that is essential to the game's processing, such as render.

    #2 - Why are you using ASM and VirtualProtect at all? You can simply do something like:

    Code:
    DWORD dwAddr = GetProcAddress(hModule, "QueryPerformanceCounter");
    if(*((BYTE*)dwAddr) == 0xE9)
    ...
    #3 - This only checks for jmps at the address of the functions. A hacker can also jmp inside the function, or even hook the vtable and bypass any .text section checking completely. Do some research and you can easily find much better methods of detour detection.

    #4 - At least check for hooks on ExitProcess/GetProcAddress/GetModuleHandle. Those are also easy ways to bypass this "antihack".

  18. #18
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    Updated link
    @ Mootie Ty :P
    Last edited by MisterKid; 25-02-12 at 08:31 PM.

  19. #19
    i <3 C++ Deviant is offline
    MemberRank
    Jun 2005 Join Date
    Little GardenLocation
    527Posts

    Re: Q-Protect Anti hack source code

    hey sir can you add splash thingy?

  20. #20
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    Erm Mootie your way is invalid.
    DWORD dwAddr = GetProcAddress(hModule, "QueryPerformanceCounter");
    Will get you the function address when the dll has the export.
    Kernal32.dll exports QueryPerformanceCounter right?:P

    if(*((BYTE*)dwAddr) == 0xE9)
    It is not possible to do it like this :P

    I found another way to block functions. The new way just replaces the function if it can find the function addres :P But using the same method you be able to bypass the antihack :S (only if you know the function addres) Most Flyff server has their neuzes unpacked so it would be easy to find the addres.

  21. #21
    Not working on UnitedFlyf Mootie is offline
    MemberRank
    Apr 2009 Join Date
    1,589Posts

    Re: Q-Protect Anti hack source code

    Quote Originally Posted by MisterKid View Post
    Erm Mootie your way is invalid.
    DWORD dwAddr = GetProcAddress(hModule, "QueryPerformanceCounter");
    Will get you the function address when the dll has the export.
    Kernal32.dll exports QueryPerformanceCounter right?:P

    if(*((BYTE*)dwAddr) == 0xE9)
    It is not possible to do it like this :P

    I found another way to block functions. The new way just replaces the function if it can find the function addres :P But using the same method you be able to bypass the antihack :S (only if you know the function addres) Most Flyff server has their neuzes unpacked so it would be easy to find the addres.
    Why doesn't it work? It seems perfectly valid to me.

    dwAddr = DWORD(an x86 address)
    dwAddr is cast as a ptr to a BYTE
    dwAddr is dereferenced and checked to make sure the function call isn't detoured

    It does the exact same thing as what your code does, except less mess and performance overhead. The only thing that doesn't work about it is if the hacker uses a non-standard detour that doesn't use the 0xE9 instruction, but yours doesn't protect against this either. VirtualProtect is completely unnecessary to check the text section of a normal loaded module.

  22. #22
    Game Developer MisterKid is offline
    MemberRank
    Jun 2009 Join Date
    1,585Posts

    Re: Q-Protect Anti hack source code

    getproc doesnt really return a Dword. But I try converting it and test it again .
    :p just interested in it agaib lol
    Posted via Mobile Device

  23. #23
    Apprentice Yazzn is offline
    MemberRank
    Jan 2012 Join Date
    5Posts

    Re: Q-Protect Anti hack source code

    some ideas:
    Let your anticheat scan itself and the Neuz.exe for modifications.

    Let your anticheat send some crypted information to the server, which kicks/bans the user, if the informations are not valid / sent.

    Create a driver, which blocks ZwOpenProcess, ZwReadProcessMemory, ZwWriteProcessMemory, etc..

    Ignore jmps at the begging of a function (this isn't really efficient, because you still can hook in the mid of the function)
    example
    Code:
    int QueryPerformanceCounter_real = (DWORD)GetProcAddress(GetModuleHandle("Kernel32.dll"), "QueryPerformanceCounter") + 5;
    __declspec(naked) BOOL WINAPI QueryPerformanceCounter_proxy(LARGE_INTEGER *lpPerformanceCount)
    {
    	__asm
    	{
    		mov edi, edi
    		push ebp
    		mov ebp, esp
    		jmp [QueryPerformanceCounter_real]
    	}
    }
    Last edited by Yazzn; 17-03-12 at 03:23 PM.

  24. #24
    Member jvscrptr is offline
    MemberRank
    Oct 2011 Join Date
    HEAVENLocation
    58Posts

    Re: Q-Protect Anti hack source code

    make it minimized to tray when opened =))

  25. #25
    Enthusiast guemebr123 is offline
    MemberRank
    Feb 2006 Join Date
    TurkeyLocation
    38Posts

    Re: Q-Protect Anti hack source code

    Which version should I use visual studio?

    2003 not open



Page 1 of 2 12 LastLast

Advertisement