Raised This Month: $32 Target: $400
 8% 

Unreal HPPv6 Detector


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
karaulov
Senior Member
Join Date: Jul 2018
Old 04-01-2022 , 04:06   Unreal HPPv6 Detector
#1

This plugin can easy detect leaked HPP hack (HPP v6 cracked by Midnight)


Code:
#include <amxmodx>
#include <amxmisc>
#include <reapi>

new const Plugin_sName[] = "Unreal HPPv6 Detector";
new const Plugin_sVersion[] = "1.0.5";
new const Plugin_sAuthor[] = "Karaulov";

new g_sCvarName[] = "host_limitlocal";
new g_sCvarName2[] = "sv_lan_rate";

new const g_sVerBackup[MAX_PLAYERS + 1][64];

public plugin_init()
{
    register_plugin(Plugin_sName, Plugin_sVersion, Plugin_sAuthor);
    register_cvar("unreal_hppv6_detect", Plugin_sVersion, FCVAR_SERVER | FCVAR_SPONLY);
}

public client_putinserver(id)
{
    if (REU_GetProtocol(id) >= 48)
    {
        query_client_cvar(id, g_sCvarName, "check_host_limitlocal_is_zero");
    }
}

public client_disconnected(id)
{
    remove_task(id);
}

public check_host_limitlocal_is_zero(id, const cvar[], const value[])
{
    if(equali(cvar,g_sCvarName) && equali(value,"1") && is_user_connected(id))
    {
        client_cmd(id, "%s 0",g_sCvarName);
        client_cmd(id, "%s 0;%s 0;",g_sCvarName,g_sCvarName);
        client_cmd(id, "%s 0",g_sCvarName);
        set_task(1.5,"check_host_limitlocal_is_zero_task",id)
    }
}

public check_host_limitlocal_is_zero_task(id)
{
    query_client_cvar(id, g_sCvarName, "check_host_limitlocal_is_zero2");
}

public check_host_limitlocal_is_zero2(id, const cvar[], const value[])
{
    if(equali(cvar,g_sCvarName) && equali(value,"1") && is_user_connected(id))
    {
        new username[33];
        get_user_name(id,username,charsmax(username));
        query_client_cvar(id, g_sCvarName2, "check_protector");
    }
}

public check_protector(id, const cvar[], const value[])
{
    if(equali(cvar,g_sCvarName2) && is_user_connected(id))
    {
        copy(g_sVerBackup[id],charsmax(g_sVerBackup[]),value);
        client_cmd(id, "%s 13133",g_sCvarName2);
        client_cmd(id, "%s 13133;%s 13133;",g_sCvarName2,g_sCvarName2);
        client_cmd(id, "%s 13133",g_sCvarName2);
        set_task(1.5,"check_protector_task",id)
    }
}

public check_protector_task(id)
{
    query_client_cvar(id, g_sCvarName2, "check_protector2");
}

public check_protector2(id, const cvar[], const value[])
{
    if(equali(cvar,g_sCvarName2) && equali(value,"13133"))
    {
        client_cmd(id, "%s %s",g_sCvarName2,g_sVerBackup[id]);
        new username[33];
        get_user_name(id,username,charsmax(username));
        client_print_color(0,print_team_red, "^4[HPP DETECTOR]^3: Player^1 %s^3 used^1HPP HACK^3!",username);
        log_amx("[HPP DETECTOR]: Player %s used HPP HACK!",username);
    }
    else if(equali(cvar,g_sCvarName2))
    {
        client_cmd(id, "%s %s",g_sCvarName2,g_sVerBackup[id]);
        new username[33];
        get_user_name(id,username,charsmax(username));
        client_print_color(0,print_team_red, "^4[HPP DETECTOR]^3: Player^1 %s^3 possible use ^1HPP HACK^3!",username);
        log_amx("[HPP DETECTOR]: Player %s  possible use HPP HACK!",username);
    }
}

Last edited by karaulov; 04-01-2022 at 05:18.
karaulov is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-01-2022 , 09:21   Re: Unreal HPPv6 Detector
#2

Please keep your non-steam content to yourself and off these forums.

https://forums.alliedmods.net/misc.php?do=showrules

For reference:
PHP Code:
public client_putinserver(id)
{
    if (
REU_GetProtocol(id) >= 48)
    {
        
query_client_cvar(idg_sCvarName"check_host_limitlocal_is_zero");
    }

Not a check for a STEAM server at all.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
karaulov
Senior Member
Join Date: Jul 2018
Old 04-01-2022 , 09:42   Re: Unreal HPPv6 Detector
#3

Quote:
Originally Posted by DruGzOG View Post
Please keep your non-steam content to yourself and off these forums.

https://forums.alliedmods.net/misc.php?do=showrules

For reference:
PHP Code:
public client_putinserver(id)
{
    if (
REU_GetProtocol(id) >= 48)
    {
        
query_client_cvar(idg_sCvarName"check_host_limitlocal_is_zero");
    }

Not a check for a STEAM server at all.


Sorry I can't do it
karaulov is offline
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode