Author Topic: [Snippet] Crash-based .asi detector rel004  (Read 7635 times)

vito70 on: May 06, 2018, 02:28:42 am

  • Guest
This anticheat detecting .asi hacks.

/main.nut (serverside)

Code: [Select]

function onPlayerCommand(player_admin, cmd, text){

    if(cmd == "crash"){

        local pid = text.tointeger();

        local p = ::FindPlayer(pid);

        if(p){

            local ee = ::Stream();

            ee.WriteInt(300);

            ee.SendStream(p);

        } else {

            ::MessagePlayer("player not found", player_admin);

        }

    }

}

function onPlayerCrashDump(player, crash){

    local c = ::split(crash, "\n");

    local asi = [];

    foreach (i in c){

        if(regexp(".asi").search(i.tolower())){

            asi.push(i);

        }

    }

    //inform admin

    local player_admin = ::FindPlayer(0);

    if(player_admin){

        foreach (i in asi){

            ::MessagePlayer(i, player_admin);

        }

    }

}


/store/script/main.net (clientside)

Code: [Select]

function crash_player(){

    include("crash.nut");

}

function Server::ServerData(stream){

    local id = stream.ReadInt();

    if(300 == id){

        ::crash_player();

    }

}


/store/script/crash.nut (clientside)

Code: [Select]

hui(


(note keep it as you see here to make crash in client)

Example of output:


Offline ELK #1 on: May 09, 2018, 09:27:18 am

  • Administrator
  • Hero Member
  • *
  • Posts: 564
  • The age of elves has come
    • View Profile
Sorry for late reply, and thanks for sharing above code. It will be discussed.
The Huna Horde