Welcome to the RaGEZONE - MMORPG development forums.

Anti Shotbot

This is a discussion on Anti Shotbot within the Gunz Releases forums, part of the Gunz Online category; bahhh dont even try to bypass it o.O lets play fair this time?...

Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
  1. #31
    Kushi Yo Yo
    Rank
    Member +
    Join Date
    Feb 2011
    Posts
    537
    Liked
    284

    Re: Anti Shotbot

    Click
    bahhh dont even try to bypass it o.O lets play fair this time?

  2. #32
    Gone hollow
    Rank
    Alpha Member
    Join Date
    Dec 2007
    Location
    The Netherlands
    Posts
    2,141
    Liked
    593

    Re: Anti Shotbot

    Quote Originally Posted by ThePhailure772 View Post
    PHP Code:
    /* Anti-Shotbot Bypasser */
    #include <windows.h>
    #include <thread>
    #include <iostream>


    HHOOK MouseHook;


    LRESULT CALLBACK ReplaceMousehook(int nCodeWPARAM wParamLPARAM lParam)
    {
        if (
    nCode == HC_ACTION && (wParam  == WM_RBUTTONDOWN || wParam == WM_LBUTTONDOWN))
        {
            
    reinterpret_cast<MSLLHOOKSTRUCT*>(lParam)->flags 0;
            
    std::cout << "Injection bypassed!" << std::endl;
        }
        return 
    CallNextHookEx(MouseHook,nCode,wParam,lParam);
    }


    void ShotbotBypassExample()
    {
        while(
    true)
        {
            if (
    GetAsyncKeyState(VK_NUMPAD0)&1)
            {
                
    std::cout << "Sending input now." << std::endl;
                
    INPUT input[2];
                
    input[0].type INPUT_MOUSE;
                
    input[0].mi.dwFlags MOUSEEVENTF_LEFTDOWN;    
                
    input[1].type INPUT_MOUSE;
                
    input[1].mi.dwFlags MOUSEEVENTF_LEFTUP;
                
    SendInput(2inputsizeof(INPUT));
            }


            
    Sleep(1);
        }
    }


    int main(int argcchar** argv)
    {
        
    std::thread keybind(ShotbotBypassExample);
        
    keybind.joinable();


        
    HHOOK hook SetWindowsHookExWH_MOUSE_LLReplaceMousehookGetModuleHandle(0), NULL );
        
    MSG message;
        while (
    GetMessage(&message,NULL,0,0)) {
            
    TranslateMessage( &message );
            
    DispatchMessage( &message );
        }
        return 
    0;

    Run after Gunz, profit.
    I already pointed out to Gunblade he should check the Windows hook chain and loop through the hooks to make sure you're the only one to hook.

    [C] ENUM WINDOWS HOOKS - Pastebin.com
    (Credits to Alex from ntinternals)

    This is still without the use of a driver, just like I pointed out.

    Quote Originally Posted by migueldj View Post
    n1 wizkid dont know how to decently code.
    Whoever you are, you're doing an awesome job on sucking his dick. Too bad I was one step ahead of him so you might want to pull your pants up.

    -edit-
    Judging by your English, you're probably Vitor.
    Last edited by Wizkidje; 16-07-12 at 02:01 PM.

  3. #33
    Member
    Rank
    Member
    Join Date
    Apr 2012
    Posts
    71
    Liked
    1

    Re: Anti Shotbot

    have errors :(

  4. #34
    Infraction Banned
    Rank
    Alpha Member
    Join Date
    Jan 2008
    Location
    Raalte, Netherl
    Posts
    1,658
    Liked
    234
    XFIRE ID: jur13n

    Re: Anti Shotbot

    Quote Originally Posted by LeGenDGuNz View Post
    have errors :(
    in your head or in your source?
    post the errors or we won't find any solutions

  5. #35
    GunZ Developer
    Rank
    Member +
    Join Date
    Oct 2006
    Posts
    469
    Liked
    27

    Re: Anti Shotbot

    Quote Originally Posted by Wizkidje View Post
    No, since GunZ uses DirectInput for keyboard input (at least for the keys that are relevant to cheating) and DirectInput retrieves input straight from the driver rather than from Windows so you can't inject any keyboard input into GunZ using a Windows API function.

    In fact, as I just told Gunblade, porting GunZ to get mouse input from DirectInput instead of Windows would also patch all shotbots that have ever been released.
    Gunz 1.5 use DInput for mouse...you mean for the "click" thing?

  6. #36
    Gone hollow
    Rank
    Alpha Member
    Join Date
    Dec 2007
    Location
    The Netherlands
    Posts
    2,141
    Liked
    593

    Re: Anti Shotbot

    Quote Originally Posted by dacharles View Post
    Gunz 1.5 use DInput for mouse...you mean for the "click" thing?
    It uses Windows messages just like it does for certain keys.

  7. #37
    Ultimate Member
    Rank
    Member
    Join Date
    Apr 2012
    Location
    The Netherlands
    Posts
    157
    Liked
    26

    Re: Anti Shotbot

    i don't like this codes that much..

  8. #38
    Gone hollow
    Rank
    Alpha Member
    Join Date
    Dec 2007
    Location
    The Netherlands
    Posts
    2,141
    Liked
    593

    Re: Anti Shotbot

    Quote Originally Posted by iDelta123 View Post
    i don't like this codes that much..
    I don't like your attitude / reply that much either.

 

 
Page 3 of 3 FirstFirst 123

Posting Permissions

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