AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceMod Anti-Cheat (https://forums.alliedmods.net/forumdisplay.php?f=133)
-   -   SMAC null cmd explanation. (https://forums.alliedmods.net/showthread.php?t=306384)

Visual77 03-28-2018 17:33

SMAC null cmd explanation.
 
Hi.

I'm interested to know what the reason is behind blocking null cmd input in OnClientRunCmd. Does anyone from the smac team remember why this code is in here. Is it possibly just a typo and it's ment to return Plugin_Continue ?

smac_eyetest.sp ->

This;
Code:

        // NULL commands
        if (cmdnum <= 0)
                return Plugin_Handled;


SystematicMania 04-01-2018 06:25

Re: SMAC null cmd explanation.
 
Formerly, the seed for weapon spread was calculated as seed=MD5_PseudoRandom(cmdnum). Not blocking cmdnum=0 causes a static seed to be easily accessible. Meaning, cheats wouldn't need to brute force this seed by skipping future cmdnums. IIRC, cmdnum=0 is useless and typically caused by clients typing "disconnect" in console.

Visual77 04-01-2018 07:28

Re: SMAC null cmd explanation.
 
Thanks for replying. That explains why it happend frequently on mapchange and on joiniing the spectator team.


All times are GMT -4. The time now is 21:36.

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