Results 1 to 11 of 11
  1. #1
    T0X1Cmods's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    Arma3.exe
    Posts
    310
    Reputation
    10
    Thanks
    3,453

    Server Side Anti Hack

    this is purely for server hosters only

    Add
    Code:
    if (isServer) then {
        [] execVM "antihack.sqf";
    } else {
        "AHAH" addPublicVariableEventHandler
    {[] spawn (_this select 1);
    };
        clientStarted = player;
     
        publicVariableServer "clientStarted";
    };
    at the bottom of your init.sqf

    then in the main dir of your mission so the main folder same as what init.sqf is in add

    antihack.sqf and inside antihack.sqf put this

    Code:
    private["_array", "_player", "_hackType", "_hackValue"];
     
    diag_log "ANTI-HACK 0.6.3 starting...";
    AHAH = {
        diag_log "ANTI-HACK 0.6.3 starting...";
        if (isServer) exitWith {};
        _commonPaths = ["used for hacking", "wuat\screen.sqf", "scripts\defaultmenu.sqf", "menu\initmenu.sqf", "scr\exec.sqf", "scripts\exec.sqf",
                "menu\exec.sqf", "wuat\exec.sqf", "crinkly\keymenu.sqf", "scripts\ajmenu.sqf", "startup.sqf", "wookie_wuat\startup.sqf"
        ]; {
            _contents = format["", loadFile _x];
            if (_contents != "") then {
                    diag_log "ANTI-HACK 0.6.3: hacker?!";
     
                    hackFlag = [player, "hack menu", _x];
                    publicVariableServer "hackFlag";
                    sleep 5;
                    for "_i"
                    from 0 to 99 do {
                        (findDisplay _i) closeDisplay 0;
                    };
            };
        }
        forEach _commonPaths;
        diag_log "ANTI-HACK 0.6.3: Starting loops!";
        [] spawn {
            private["_sleepVariableCheck", "_badPublicVariables"];
            _sleepVariableCheck = 300;
            _badPublicVariables = ["pic", "veh", "wuat_fpsMonitor", "unitList", "list_wrecked",
                    "p", "fffffffffff", "markPos", "pos", "marker", "TentS", "VL", "MV",
                    "mk2", "i", "j", "fuckmegrandma", "mehatingjews", "scode", "TTT5OptionNR",
                    "igodokxtt", "omgwtfbbq", "namePlayer", "thingtoattachto", "HaxSmokeOn", "v",
                    "antiloop", "ARGT_JUMP", "selecteditem", "moptions", "delaymenu", "gluemenu",
                    "spawnweapons1", "abcd", "skinmenu", "playericons", "changebackpack", "keymenu",
                    "img", "surrmenu", "footSpeedIndex", "ctrl_onKeyDown", "plrshldblcklst",
                    "musekeys", "dontAddToTheArray", "morphtoanimals", "playerDistanceScreen", "pm",
                    "debugConsoleIndex", "MY_KEYDOWN_FNC", "TAG_onKeyDown", "changestats", "helpmenu",
                    "unitsmenu", "xZombieBait", "shnmenu", "slag", "xtags", "tempslag", "dayzRespawn2", "dayzRespawn3",
                    "hangender", "addgun", "ESP", "BIS_fnc_3dCredits_n", "ViLayer", "maphalf", "activeITEMlist",
                    "activeITEMlistanzahl", "xyzaa", "iBeFlying", "rem", "DAYZ_CA1_Lollipops", "bowonky", "HMDIR", "HDIR",
                    "Monky_funcs_inited", "atext", "boost", "Ug8YtyGyvguGF", "inv", "rspwn", "nd", "qofjqpofq",
                    "invall", "initarr", "reinit", "byebyezombies", "keymenu2", "hotkeymenu", "letmeknow", "Listw",
                    "mahcaq", "mapm", "weapFun", "firstrun", "take1", "dwarden", "bowonky", "bowen", "monky", "pic",
                    "god", "toggle_keyEH", "drawic", "mk2", "i", "j", "ptags", "abox1", "dayz_godmode", "testIndex", "g0d",
                    "g0dmode", "zeus", "zeusmode", "cargod", "qopfkqpofqk", "monkytp", "pbx", "playershield", "zombieDistanceScreen",
                    "theKeyControl", "plrshldblckls", "zombieshield", "pathtoscrdir", "footSpeedKeys", "wl", "spawnitems1",
                    "lmzsjgnas", "vm", "Monky_hax_toggled", "pu", "nb", "vspeed", "godlol", "aesp", "godall", "initarr3", "initarr2", "DEV_ConsoleOpen", "LOKI_GUI_Key_Color"
            ];
            diag_log "ANTI-HACK 0.6.3: Detection of hack variables started!";
            while {
                true
            }
            do {
                {
                    if !(isNil _x) exitWith {
                        diag_log "ANTI-HACK 0.6.3: Found a hack variable!";
     
                        hackFlag = [player, "hacked variable", _x];
                        publicVariableServer "hackFlag";
                        sleep 5;
                        for "_i"
                        from 0 to 99 do {
                            (findDisplay _i) closeDisplay 0;
                        };
                    };
                }
                forEach _badPublicVariables;
     
                sleep _sleepVariableCheck;
            };
        };
        [] spawn {
            private["_keyDownHandlerCount", "_keyUpHandlerCount", "_ctrlDrawHandlerCount"];
            diag_log "ANTI-HACK 0.6.3: Hack menu check started!";
            while {
                true
            }
            do {
                (findDisplay 46) displayRemoveAllEventHandlers "KeyUp";
                ((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers "Draw";
                if (!(isNull findDisplay 3030) || !(isNull findDisplay 155)) then {
     
                        diag_log "ANTI-HACK 0.6.3: Found a hack menu!";
     
                        hackFlag = [player, "hack menu", _x];
                        publicVariableServer "hackFlag";
                        sleep 5;
                        for "_i"
                        from 0 to 99 do {
                            (findDisplay _i) closeDisplay 0;
                        };
                };
                sleep 330;
            };
        };
        [] spawn {
            private["_sleepGodModeCheck", "_recoilSettings", "_zombieCheck", "_damageHandler", "_unconsciousFunction"];
            _sleepGodModeCheck = 360;
            _recoilSettings = unitRecoilCoefficient player;
            diag_log "ANTI-HACK 0.6.3: Godmode check started!";
            while {
                true
            }
            do {
                if (unitRecoilCoefficient player != _recoilSettings) exitWith {
                        diag_log "ANTI-HACK 0.6.3: Detected recoil hack!";
                        hackFlag = [player, "no recoil", "null"];
                        publicVariableServer "hackFlag";
                        sleep 5;
                        for "_i"
                        from 0 to 99 do {
                            (findDisplay _i) closeDisplay 0;
                        };
                };
                sleep _sleepGodModeCheck;
            };
        };
    };
     
    diag_log "ANTI-HACK 0.6.3: Adding public variable handler";
    "hackFlag"
    addPublicVariableEventHandler {
        _array = _this select 1;
        _player = _array select 0;
        _hackType = _array select 1;
        _hackValue = format["", _array select 2];
        diag_log format["ANTI-HACK:  () was detected for  with the value ''", name _player, getPlayerUID _player, _hackType, _hackValue];
        serverCommand format["#kick ", name _player];
        serverCommand format["#exec ban ", name _player];
    };
    "clientStarted"
    addPublicVariableEventHandler {
        _client = _this select 1;
        (owner _client) publicVariableClient "AHAH";
        diag_log format["Starting anti-hack on client #", owner _client];
    };
     
    diag_log "ANTI-HACK 0.6.3: Anti-hack should be ready now!";
    __________________________________________________
    Computer Specifications.
    CPU: i7 4770k Haswell 4.6Ghz (Cooled by H100i Push pull (2x NZXT FS 200LED Pull and Noctua NF-F12 Push))
    RAM: Corsair Dominator Platinum 1866 Mhz 16GB 2x 8GB
    Motherboard: ASUS ROG Maximus 6 Hero
    Video Card: Zotac GTX 780

    __________________________________________________



  2. #2
    Loganater23's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    uranus (originalamirite?)
    Posts
    418
    Reputation
    15
    Thanks
    60
    Interesting, if I understand this correctly, it will ban/kick whoever the anti-hack finds correct? Is it possible to use this (not this script) as a client to kick/ban others? Just an idea.

  3. #3
    Threadstarter
    私はアニメが大好きです
    Donator
    T0X1Cmods's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    Arma3.exe
    Posts
    310
    Reputation
    10
    Thanks
    3,453
    Quote Originally Posted by Loganater23 View Post
    Interesting, if I understand this correctly, it will ban/kick whoever the anti-hack finds correct? Is it possible to use this (not this script) as a client to kick/ban others? Just an idea.
    never tried XD could do but im not sure if the kick/ban part of this script works cus i stole it from a server witch white screened me but i can still join so it didnt ban me
    __________________________________________________
    Computer Specifications.
    CPU: i7 4770k Haswell 4.6Ghz (Cooled by H100i Push pull (2x NZXT FS 200LED Pull and Noctua NF-F12 Push))
    RAM: Corsair Dominator Platinum 1866 Mhz 16GB 2x 8GB
    Motherboard: ASUS ROG Maximus 6 Hero
    Video Card: Zotac GTX 780

    __________________________________________________



  4. #4
    Loganater23's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    uranus (originalamirite?)
    Posts
    418
    Reputation
    15
    Thanks
    60
    Quote Originally Posted by T0X1Cmods View Post
    never tried XD could do but im not sure if the kick/ban part of this script works cus i stole it from a server witch white screened me but i can still join so it didnt ban me
    Ah, well someone might want to play around with this function "serverCommand" I know in ArmA 2 they had something similar to this, I'd be surprised if they fucked this up twice too. Not.

  5. #5
    Threadstarter
    私はアニメが大好きです
    Donator
    T0X1Cmods's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    Arma3.exe
    Posts
    310
    Reputation
    10
    Thanks
    3,453
    Quote Originally Posted by Loganater23 View Post
    Ah, well someone might want to play around with this function "serverCommand" I know in ArmA 2 they had something similar to this, I'd be surprised if they fucked this up twice too. Not.
    gonna try
    Code:
    _player =_this select 0;
    _ban = format ["if (name player == ""%1"") then
    {
    	serverCommand format["#exec ban ", _player];
    };", _player];
    [_ban] execVM "wookie_beta\exec.sqf";
    Or
    Code:
    _player =_this select 0;
    _ban = format ["if (name player == ""%1"") then
    {
    	serverCommand format["#ban ", _player];
    };", _player];
    [_ban] execVM "wookie_beta\exec.sqf";
    see if that works XD


    EDIT: tried a few differant scripts none worked
    Last edited by T0X1Cmods; 04-23-2013 at 04:34 AM.
    __________________________________________________
    Computer Specifications.
    CPU: i7 4770k Haswell 4.6Ghz (Cooled by H100i Push pull (2x NZXT FS 200LED Pull and Noctua NF-F12 Push))
    RAM: Corsair Dominator Platinum 1866 Mhz 16GB 2x 8GB
    Motherboard: ASUS ROG Maximus 6 Hero
    Video Card: Zotac GTX 780

    __________________________________________________



  6. #6
    gilberto1337's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    13
    You need to be logged in as admin for serverCommand to work

  7. #7
    Threadstarter
    私はアニメが大好きです
    Donator
    T0X1Cmods's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    Arma3.exe
    Posts
    310
    Reputation
    10
    Thanks
    3,453
    oh XD well i guess thats why it didnt work :P
    __________________________________________________
    Computer Specifications.
    CPU: i7 4770k Haswell 4.6Ghz (Cooled by H100i Push pull (2x NZXT FS 200LED Pull and Noctua NF-F12 Push))
    RAM: Corsair Dominator Platinum 1866 Mhz 16GB 2x 8GB
    Motherboard: ASUS ROG Maximus 6 Hero
    Video Card: Zotac GTX 780

    __________________________________________________



  8. #8
    Threadstarter
    私はアニメが大好きです
    Donator
    T0X1Cmods's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    Arma3.exe
    Posts
    310
    Reputation
    10
    Thanks
    3,453
    Quote Originally Posted by defk0n View Post
    ARE YOU FUCKING KIDDING ME
    what ? /toshort
    __________________________________________________
    Computer Specifications.
    CPU: i7 4770k Haswell 4.6Ghz (Cooled by H100i Push pull (2x NZXT FS 200LED Pull and Noctua NF-F12 Push))
    RAM: Corsair Dominator Platinum 1866 Mhz 16GB 2x 8GB
    Motherboard: ASUS ROG Maximus 6 Hero
    Video Card: Zotac GTX 780

    __________________________________________________



  9. #9
    Loganater23's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    uranus (originalamirite?)
    Posts
    418
    Reputation
    15
    Thanks
    60
    Quote Originally Posted by T0X1Cmods View Post
    what ? /toshort
    lol I see a lot of old DayZ public variables in there, also why is Vilayer in there? wtf

  10. #10
    Threadstarter
    私はアニメが大好きです
    Donator
    T0X1Cmods's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    Arma3.exe
    Posts
    310
    Reputation
    10
    Thanks
    3,453
    Quote Originally Posted by Loganater23 View Post
    lol I see a lot of old DayZ public variables in there, also why is Vilayer in there? wtf
    people will just straight up use menus from dayz with no changes so thats why all the old dayz variable are in there and i have no idea why vilayer is in i didnt make the script
    __________________________________________________
    Computer Specifications.
    CPU: i7 4770k Haswell 4.6Ghz (Cooled by H100i Push pull (2x NZXT FS 200LED Pull and Noctua NF-F12 Push))
    RAM: Corsair Dominator Platinum 1866 Mhz 16GB 2x 8GB
    Motherboard: ASUS ROG Maximus 6 Hero
    Video Card: Zotac GTX 780

    __________________________________________________



  11. #11
    Mr_Coop1972's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    80
    Reputation
    10
    Thanks
    4
    My Mood
    Angelic
    Good work! I used this + whitelisting so now admins are able to use a custom admin menu and we don't have hackers 24/7

Similar Threads

  1. Server sided game hacking
    By Tide in forum General
    Replies: 10
    Last Post: 03-17-2013, 04:21 PM
  2. [Info] Server Maintenance & Anti-Hack Patch - 8th November; 7 AM - 11 AM (GMT+8)
    By Vehrdyn in forum Blackshot Hacks & Cheats
    Replies: 28
    Last Post: 11-07-2012, 07:54 PM
  3. [Info] Server Maintenance & Anti-Hack Patch - 16th October; 7 AM - 10:30 AM (GMT+8)
    By blackshothack2012 in forum Blackshot Hacks & Cheats
    Replies: 1
    Last Post: 10-15-2012, 06:55 PM
  4. [Tutorial] Improved Server Side Damage Hack
    By Hexicidal in forum MapleStory Tutorial & Guides
    Replies: 7
    Last Post: 06-16-2012, 07:31 AM
  5. Perfect CA Hack Idea ;) [Server Sided]
    By skip in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 08-18-2008, 09:05 PM