[Release] Simple Code AntiHack just testing

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    note [Release] Simple Code AntiHack just testing

    SEARCH FOR: WarZ.sln
    Code:
    m_ReticleTargetScale = R3D_MIN(1.0f + spread, 12.0f);
    
        // update reload anim
        if(wpn->isReloading())
        {
            uberAnim_->StartReloadAnim();
        }
        else
        {
            uberAnim_->StopReloadAnim();
        }
    Add Bellow
    Code:
    //DouglasPRO :: JUST TESTING !!  
       if(PlayerState == PLAYER_IDLE){
            if(plr_local_Velocity.Z >= 1.5){
                if(PlayerState == PLAYER_IDLE){
                    r3dOutToLog("WARNING : ERROR 101-A");
                    extern bool gKillFlag;
                    if(!gUserProfile.ProfileData.isDevAccount){//AlphaMMO A.C AGAINST SPEED HACK
                    gKillFlag  = true;
                    }
                }
            }
        }
       if(PlayerState == PLAYER_MOVE_RUN){
            if(plr_local_Velocity.Z >= 3.5){
                if(PlayerState == PLAYER_MOVE_RUN){
                    r3dOutToLog("WARNING : ERROR SPEED HACK FOUND-B");
                    if(!gUserProfile.ProfileData.isDevAccount){//AlphaMMO A.C AGAINST SPEED HACK
                    extern bool gKillFlag;
                    gKillFlag  = true;
                    }
                }
            }
        }
    
    
       //ANTI JUMP
          if(JumpVelocity){
            if(JumpVelocity/*.Z*/ >= 22){
                if(PlayerState == PLAYER_MOVE_RUN){
                    r3dOutToLog("WARNING : ERROR JUMP HACK FOUND -A");
                    if(!gUserProfile.ProfileData.isDevAccount){//AlphaMMO A.C AGAINST JUMP HACK DouglasPRO
                    extern bool gKillFlag;
                    gKillFlag  = true;
                    }
                }
            }
        }
        //DouglasPRO :: JUST TESTING !! 
        //ANTI DEBUG
        if(IsDebuggerPresent()){
                r3dOutToLog("WARNING : DEBUG FOUND -C");
                extern bool gKillFlag;
                if(!gUserProfile.ProfileData.isDevAccount){//AlphaMMO A.C DEBUG CANCEL
                gKillFlag  = true;
                }
        }
        
        if(bOnGround){
            if(plr_local_Velocity.Z >= 4.5){
                r3dOutToLog("WARNING : ERROR SPEED HACK FOUND-C");
                extern bool gKillFlag;
                if(!gUserProfile.ProfileData.isDevAccount){//AlphaMMO A.C AGAINST SPEED HACK
                gKillFlag  = true;
                }
            }
        }    
    
    
        VMPROTECT_End();
    }


  2. #2
    Account Upgraded | Title Enabled! Returnerzx is offline
    MemberRank
    Apr 2011 Join Date
    236Posts

    Re: [Release] Simple Code AntiHack just testing

    not bool gKillFlag in src how to ?

  3. #3
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by Returnerzx View Post
    not bool gKillFlag in src how to ?
    gKillFlag = true;


    add in clientgamelogic.cpp
    bool gKillFlag = false;

  4. #4
    Account Upgraded | Title Enabled! Returnerzx is offline
    MemberRank
    Apr 2011 Join Date
    236Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by DouglasPro View Post
    gKillFlag = true;


    add in clientgamelogic.cpp
    bool gKillFlag = false;
    how to ?

  5. #5
    Make WarZ great again! Nikita505 is offline
    MemberRank
    Mar 2014 Join Date
    Mountain ViewLocation
    223Posts

    Re: [Release] Simple Code AntiHack just testing

    looks like copy paste from FairFight, without server side checks

  6. #6
    Apprentice AcX is offline
    MemberRank
    Nov 2015 Join Date
    24Posts

    Re: [Release] Simple Code AntiHack just testing

    What did u expect? :)

  7. #7
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by Nikita505 View Post
    looks like copy paste from FairFight, without server side checks
    was not copied from FairFight, that's just a test I will still post something but complex web servers link !

  8. #8
    Apprentice AcX is offline
    MemberRank
    Nov 2015 Join Date
    24Posts

    Re: [Release] Simple Code AntiHack just testing

    Its way better to get a complete Antihack SDK, and a solid no name obfuscator like Mange-It, and what else. Just saying. But ofc. it will need a solid portion of coding skills.

  9. #9
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by AcX View Post
    Its way better to get a complete Antihack SDK, and a solid no name obfuscator like Mange-It, and what else. Just saying. But ofc. it will need a solid portion of coding skills.
    I already have a project started !

  10. #10
    Enthusiast Marreco is offline
    MemberRank
    Jul 2013 Join Date
    BrazilLocation
    38Posts

    Re: [Release] Simple Code AntiHack just testing

    Hello friend, your code is valid, but it's not the best practice for the case to be on the client side. The best practice for this case is to make these checks on the server side, because it will not be possible to circumvent them.

  11. #11
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by Marreco View Post
    Hello friend, your code is valid, but it's not the best practice for the case to be on the client side. The best practice for this case is to make these checks on the server side, because it will not be possible to circumvent them.
    Hey bro, English very bad !!I understood nothing

    "But to answer some things I understand This code and just a test I'm doing I have something here but complex and much like an SDK using a web server like the ghp"

  12. #12
    Enthusiast Marreco is offline
    MemberRank
    Jul 2013 Join Date
    BrazilLocation
    38Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by DouglasPro View Post
    Hey bro, English very bad !!I understood nothing

    "But to answer some things I understand This code and just a test I'm doing I have something here but complex and much like an SDK using a web server like the ghp"

    Sorry for the bad english, google translator ON.
    So all right, my only tip is to do the same protections from the server side, it will be more efficient.

  13. #13
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by Marreco View Post
    Sorry for the bad english, google translator ON.
    So all right, my only tip is to do the same protections from the server side, it will be more efficient.
    Thanks for the tip <3

  14. #14
    failed in javascript ItzFdr is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    293Posts

    Re: [Release] Simple Code AntiHack just testing

    I improved your code just a bit with notepad++
    I haven't tested it, it's just example for how you have to do some anti-cheat things.
    Code:
    if(JumpVelocity > 19 && gUserProfile.ProfileData.isDevAccount == 0)
    {
        //r3dOutToLog("WARNING : ERROR JUMP HACK FOUND -A"); // Don't be so stupid, if you are making client side anti-cheat, you have to avoid string max as possible.
    #ifdef ENABLED_KILL_FLAG
        extern bool gKillFlag;
        gKillFlag  = true;
    #else
        // Send packet to the server
        // There you can ban/kick the player, it's more safe than just close the process.
        PKT_C2S_RandomPacket_s n;
        n.SuperJumped = true;
        p2pSendToHost(this, &n, sizeof(n));
    #endif // ENABLED_KILL_FLAG
    }

  15. #15
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Release] Simple Code AntiHack just testing

    Quote Originally Posted by ItzFdr View Post
    I improved your code just a bit with notepad++
    I haven't tested it, it's just example for how you have to do some anti-cheat things.
    Code:
    if(JumpVelocity > 19 && gUserProfile.ProfileData.isDevAccount == 0)
    {
        //r3dOutToLog("WARNING : ERROR JUMP HACK FOUND -A"); // Don't be so stupid, if you are making client side anti-cheat, you have to avoid string max as possible.
    #ifdef ENABLED_KILL_FLAG
        extern bool gKillFlag;
        gKillFlag  = true;
    #else
        // Send packet to the server
        // There you can ban/kick the player, it's more safe than just close the process.
        PKT_C2S_RandomPacket_s n;
        n.SuperJumped = true;
        p2pSendToHost(this, &n, sizeof(n));
    #endif // ENABLED_KILL_FLAG
    }
    Thanks by the council ... @ItzFdr

    - - - Updated - - -

    NEW LOGIC TESTINGS !

    search:
    Code:
    PKT_S2C_Flashlight,
    add bellow
    Code:
    PKT_C2S_RandomPacket, // FDR and DSP code ac
    search
    Code:
    struct PKT_S2C_Flashlight_s : public DefaultPacketMixin<PKT_S2C_Flashlight>{
        //BYTE        peerId;
    DWORD        peerId;;
        bool        Status;
        char plrname[128];
    };

    add bellow
    Code:
    struct PKT_C2S_RandomPacket_s : public DefaultPacketMixin<PKT_C2S_RandomPacket> //DouglasPRO:: NewLogic AC community !{
       bool     gKillFlag;
       int        peerId;
    };
    SEARCH
    Code:
    JumpVelocity  = 18;
    add bellow
    Code:
    if(JumpVelocity > 18 && gUserProfile.ProfileData.isDevAccount == 0)   {
        //r3dOutToLog("WARNING : ERROR JUMP HACK FOUND -A"); // Don't be so stupid, if you are making client side anti-cheat, you have to avoid string max as possible.
    #ifdef ENABLED_KILL_FLAG
        extern bool gKillFlag;
        gKillFlag  = true;
    #else
        // Send packet to the server
        // There you can ban/kick the player, it's more safe than just close the process.
        PKT_C2S_RandomPacket_s n;
        addChatMessage(0, "<SYSTEM>", "KILLED PLAYER %s BY AC", 0);
        n.SuperJumped = true;
        p2pSendToHost(this, &n, sizeof(n));
    #endif // ENABLED_KILL_FLAG
    }



Page 1 of 2 12 LastLast

Advertisement