Welcome to the RaGEZONE - MMORPG development forums.

[Release][C++] Usaful anti dll injection function.

This is a discussion on [Release][C++] Usaful anti dll injection function. within the Gunz Releases forums, part of the Gunz Online category; Anti DLL injection [C++] : By DLL : Code: void AntiInject () { HANDLE hProc = GetCurrentProcess(); while (TRUE) { ...

LyncusMU
Page 1 of 4 1234 LastLast
Results 1 to 15 of 54
  1. #1
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    [Release][C++] Usaful anti dll injection function.

    Tabo Hotel
    Anti DLL injection [C++] :

    By DLL :
    Code:
    void AntiInject () 
    { 
       HANDLE hProc = GetCurrentProcess(); 
       while (TRUE) { 
          BlockAPI(hProc, "NTDLL.DLL", "LdrLoadDll"); 
          Sleep (100); 
       } 
    } 
     
    BOOLEAN BlockAPI (HANDLE hProcess, CHAR *libName, CHAR *apiName) 
    { 
       CHAR pRet[]={0xC3}; 
       HINSTANCE hLib = NULL; 
       VOID *pAddr = NULL; 
       BOOL bRet = FALSE; 
       DWORD dwRet = 0; 
     
       hLib = LoadLibrary (libName); 
       if (hLib) { 
           pAddr = (VOID*)GetProcAddress (hLib, apiName); 
           if (pAddr) { 
               if (WriteProcessMemory (hProcess, 
                                (LPVOID)pAddr, 
                                (LPVOID)pRet, 
                                sizeof (pRet), 
                                &dwRet )) { 
                  if (dwRet) { 
                     bRet = TRUE; 
                  } 
               } 
           } 
           FreeLibrary (hLib); 
       } 
       return bRet; 
    }
    Or like this if you do it on .EXE :
    Code:
    void AntiInject () 
    { 
       HANDLE hProc = FindWindow(0,"Gunz"); 
       while (TRUE) { 
          BlockAPI(hProc, "NTDLL.DLL", "LdrLoadDll"); 
          Sleep (100); 
       } 
    } 
     
    BOOLEAN BlockAPI (HANDLE hProcess, CHAR *libName, CHAR *apiName) 
    { 
       CHAR pRet[]={0xC3}; 
       HINSTANCE hLib = NULL; 
       VOID *pAddr = NULL; 
       BOOL bRet = FALSE; 
       DWORD dwRet = 0; 
     
       hLib = LoadLibrary (libName); 
       if (hLib) { 
           pAddr = (VOID*)GetProcAddress (hLib, apiName); 
           if (pAddr) { 
               if (WriteProcessMemory (hProcess, 
                                (LPVOID)pAddr, 
                                (LPVOID)pRet, 
                                sizeof (pRet), 
                                &dwRet )) { 
                  if (dwRet) { 
                     bRet = TRUE; 
                  } 
               } 
           } 
           FreeLibrary (hLib); 
       } 
       return bRet; 
    }
    Change Gunz to your gunz name like if you use BR it will be "The Duel".


    Google it
    Thanks.
    Last edited by belette321; 04-04-09 at 12:32 PM.

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    GunZ.im
    Rank
    Member +
    Join Date
    Dec 2008
    Posts
    233
    Liked
    2

    Re: [Release][C++] Usaful anti dll injection function.

    aye... nice one

    easy but cheers

    :-)

  4. #3
    Slash GunZ Owner
    Rank
    Member +
    Join Date
    Jul 2008
    Posts
    226
    Liked
    1

    Re: [Release][C++] Usaful anti dll injection function.

    Oh yea Nice....Hahah

  5. #4
    Music<3
    Rank
    Member +
    Join Date
    Oct 2006
    Location
    Kau, Hawaii.
    Posts
    1,086
    Liked
    48

    Re: [Release][C++] Usaful anti dll injection function.

    Quote Originally Posted by BRAZIL-PAULINHO View Post
    This Works?
    No. It doesn't work. He released it because its broken. >_>;;

  6. #5
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    Re: [Release][C++] Usaful anti dll injection function.

    It supose to work

  7. #6
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    Re: [Release][C++] Usaful anti dll injection function.

    I love you too :D

  8. #7
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    Re: [Release][C++] Usaful anti dll injection function.

    VC++ or DevCPP. You need to know that this is usally without other functions like Api hook block or banned windows name ...

    Thanks.

  9. #8
    =/
    Rank
    Member +
    Join Date
    Sep 2008
    Location
    Brasil, Rio
    Posts
    541
    Liked
    7

    Re: [Release][C++] Usaful anti dll injection function.

    O.oo Niiiiiiice






    ::

  10. #9
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    Re: [Release][C++] Usaful anti dll injection function.

    VC++ or DevCPP ....

  11. #10
    =/
    Rank
    Member +
    Join Date
    Sep 2008
    Location
    Brasil, Rio
    Posts
    541
    Liked
    7

    Re: [Release][C++] Usaful anti dll injection function.

    Hmm i have VC++ here but What i have to do with the code?

  12. #11
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    Re: [Release][C++] Usaful anti dll injection function.

    Add it to existant limited anti-cheat.

  13. #12
    =/
    Rank
    Member +
    Join Date
    Sep 2008
    Location
    Brasil, Rio
    Posts
    541
    Liked
    7

    Re: [Release][C++] Usaful anti dll injection function.

    Ok Thanks :D

  14. #13
    Kush addicted
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Canada, Quebec
    Posts
    386
    Liked
    81

    Re: [Release][C++] Usaful anti dll injection function.

    Your wellcome.

  15. #14
    =/
    Rank
    Member +
    Join Date
    Sep 2008
    Location
    Brasil, Rio
    Posts
    541
    Liked
    7

    Re: [Release][C++] Usaful anti dll injection function.

    Do You Know any anticheat that i can use?

  16. #15
    Playing Minecraft
    Rank
    Alpha Member
    Join Date
    Nov 2006
    Location
    Montr
    Posts
    1,522
    Liked
    19

    Re: [Release][C++] Usaful anti dll injection function.

    Damn.. C++ is weird. To me, C# seems a lot more logical.. i dunno. But hey it's a preference :P.

    Thanks, I'm saving this for later.

 

 
Page 1 of 4 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •