Raised This Month: $51 Target: $400
 12% 

[L4D2] Null Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Plugin ID:
7797
Plugin Version:
1.1
Plugin Category:
Technical/Development
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Check players for sending invalid/null commands
    Old 09-14-2021 , 03:14   [L4D2] Null Commands
    Reply With Quote #1

    Description
    Checks players for the use of invalid commands and logs to server console. Useful to determine cheaters which manipulated number of sending commands/tickbase to shift their game time.

    Required
    DynamicHooks
    SMAC (compilation only)

    Notes
    • if player using invalid commands and have rounded or fixed dropped_packets. I am pretty much sure he is cheating.
    • g_iIgnoredCommands here is only for remove false positive result. Since when map changes server tickbase also changes but client sided doesnt and becomes synced with server only on second tick but they still can happen if some admin reloads plugins or server lost connection.
    • Perhaps for an additional check, I can add check for the number of commands sent and if they differ from the expected value then player possibly cheating or have a bad performance.
    • This is first release so so far plugin only do logging and doesn't ban anyone

    ConVar
    PHP Code:
    // if the player uses invalid commands then plugin will reset them
    // its useful if cheater uses airstuck/no fall damage/teleport because it will be fully blocked but he still can crash your server
    // 0 - disabled | 1 - enabled
    sm_usercmd_null_invalid_commands 
    Attached Files
    File Type: txt l4d2_user_commands.txt (602 Bytes, 321 views)
    File Type: sp Get Plugin or Get Source (l4d2_user_commands.sp - 45 views - 6.9 KB)
    __________________
    cry

    Last edited by BHaType; 02-01-2024 at 19:49.
    BHaType is offline
    Send a message via AIM to BHaType
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 09-14-2021 , 04:08   Re: [L4D2] Null Commands
    Reply With Quote #2

    Cool, find out where is hacker
    __________________
    HarryPotter is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 09-14-2021 , 07:13   Re: [L4D2] Null Commands
    Reply With Quote #3

    using sm 1.10 compiler

    PHP Code:
    // l4d2_user_commands.sp(58) : warning 213: tag mismatch
    // l4d2_user_commands.sp(59) : warning 213: tag mismatch
    // l4d2_user_commands.sp(60) : warning 213: tag mismatch 
    __________________
    HarryPotter is offline
    BHaType
    Great Tester of Whatever
    Join Date: Jun 2018
    Old 09-14-2021 , 22:33   Re: [L4D2] Null Commands
    Reply With Quote #4

    Quote:
    Originally Posted by HarryPotter View Post
    using sm 1.10 compiler

    PHP Code:
    // l4d2_user_commands.sp(58) : warning 213: tag mismatch
    // l4d2_user_commands.sp(59) : warning 213: tag mismatch
    // l4d2_user_commands.sp(60) : warning 213: tag mismatch 
    Fixed
    __________________
    cry
    BHaType is offline
    Send a message via AIM to BHaType
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 09-19-2021 , 01:58   Re: [L4D2] Null Commands
    Reply With Quote #5

    False positive: 2
    Cheaters: 0

    Dropped packet (0), just because someone have a lag does not mean he is cheating.
    JLmelenchon is offline
    canadianjeff
    BANNED
    Join Date: Sep 2016
    Old 10-03-2021 , 15:09   Re: [L4D2] Null Commands
    Reply With Quote #6

    after more testing is done someone needs to make sure the sourcecode for this plugin is uploaded to SirPlease

    https://github.com/SirPlease/L4D2-Co...emod/scripting

    they have the compiled version but not the sourcecode

    https://github.com/SirPlease/L4D2-Co...r_commands.smx

    the compiled version was uploaded with this commit

    https://github.com/SirPlease/L4D2-Co...7b4a9050d8f8aa

    Last edited by canadianjeff; 10-03-2021 at 15:10.
    canadianjeff is offline
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 10-21-2021 , 15:55   Re: [L4D2] Null Commands
    Reply With Quote #7

    I enabled sm_usercmd_null_invalid_commands and no it does not block jockey teleporting it still happen and did not even detected it in fact, or your method is bad or it was simply the bug as nobody is stupid enough to cheat with that. In comparision jockey_unteleport did the job and fixed it, just my experience.

    Last edited by JLmelenchon; 10-21-2021 at 15:56.
    JLmelenchon is offline
    BHaType
    Great Tester of Whatever
    Join Date: Jun 2018
    Old 10-24-2021 , 21:24   Re: [L4D2] Null Commands
    Reply With Quote #8

    Quote:
    Originally Posted by JLmelenchon View Post
    I enabled sm_usercmd_null_invalid_commands and no it does not block jockey teleporting it still happen and did not even detected it in fact, or your method is bad or it was simply the bug as nobody is stupid enough to cheat with that. In comparision jockey_unteleport did the job and fixed it, just my experience.
    The only case when the plugin stops working correctly is if you have a bunch of errors on the server or something that can refresh plugins at runtime but it will only result in false positive result so that means plugin wasn't started or there are other methods to teleport.
    __________________
    cry
    BHaType is offline
    Send a message via AIM to BHaType
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 11-30-2023 , 20:05   Re: [L4D2] Null Commands
    Reply With Quote #9

    A couple of warnings compiling on SM 1.11

    PHP Code:
    ./include/sdktools_hooks.inc(58) : warning 219local variable "buttons" shadows a variable at a preceding level
    ./include/sdktools_hooks.inc(75) : warning 219local variable "buttons" shadows a variable at a preceding level 
    larrybrains is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 12-03-2023 , 18:40   Re: [L4D2] Null Commands
    Reply With Quote #10

    Can you change "Compiler needed" to "1.11" so it compiles on Alliedmodders?
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    Reply



    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 02:05.


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