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

Page 1 of 4 1234 LastLast
Results 1 to 15 of 54
  1. #1
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

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


    RaGEZONE Recommends

    RaGEZONE Recommends

    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 01:32 PM.


  2. #2
    Account Upgraded | Title Enabled! frenchfatcat is offline
    True MemberRank
    Dec 2008 Join Date
    229Posts

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

    aye... nice one

    easy but cheers

    :-)

  3. #3
    Account Inactive Tra3200 is offline
    InactiveRank
    Jul 2008 Join Date
    226Posts

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

    Oh yea Nice....Hahah

  4. #4
    Music<3 Katsuro is offline
    True MemberRank
    Oct 2006 Join Date
    Kailua-Kona, HILocation
    1,057Posts

    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. >_>;;



  5. #5
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

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

    It supose to work

  6. #6
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

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

    I love you too :D

  7. #7
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

    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.

  8. #8
    Account Inactive BRAZIL-PAULINHO is offline
    InactiveRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

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

    O.oo Niiiiiiice






    ::

  9. #9
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

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

    VC++ or DevCPP ....

  10. #10
    Account Inactive BRAZIL-PAULINHO is offline
    InactiveRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

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

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

  11. #11
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

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

    Add it to existant limited anti-cheat.

  12. #12
    Account Inactive BRAZIL-PAULINHO is offline
    InactiveRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

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

    Ok Thanks :D

  13. #13
    Account Inactive belette321 is offline
    InactiveRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    379Posts

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

    Your wellcome.

  14. #14
    Account Inactive BRAZIL-PAULINHO is offline
    InactiveRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

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

    Do You Know any anticheat that i can use?

  15. #15
    Alpha Member kochon is offline
    Alpha MaleRank
    Nov 2006 Join Date
    MontrealLocation
    1,501Posts

    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

Advertisement