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

[ANY] Command Logger


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
canadianjeff
BANNED
Join Date: Sep 2016
Plugin ID:
7225
Plugin Version:
1.12
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    DELETE
    Unapprover:
    Reason for Unapproving:
    Issues: https://forums.alliedmods.net/showpost.php?p=2773002&postcount=11
    Old 07-27-2020 , 04:58   [ANY] Command Logger
    #1

    With the help from dustin a few months back he slapped together this plugin that would basically log all commands that clients would send to the server to aid in tracking down what clients used to ddos or crash servers from the famous spec_goto overflow exploit to the now famous setpause unpause pause spam overflow exploit and in my response I put together this bad boy with some funny extras like a joke status response showing the OS as "ATARI 2600" :)

    Feel free to edit this plugin and repost your changes for others to enjoy I would love to see other peoples ideas to go with this....

    TODO:
    look for non ascii non utf-8 in commands being sent from clients and possibly warn + kick players if they continue...

    1.10:
    new option to hide players and bots from status output to stop people from calling kick votes by bot ID number (honestly valve should do this as well)
    can now set the IP shown in status from a convar

    1.03:
    no longer logs common commands like open/close doors in l4d2

    1.05:
    can now set the OS with a cvar

    ConVars:
    • command_logger_version - Version String For Plugin
    • command_logger_console - Enable Showing Commands To Everyones Console
    • command_logger_output - Enables Logging Commands To Disk
    • command_logger_output_file - File Name To Log To
    • command_logger_block_idle - (L4D2) Block The Idle/Go Away From Keyboard?
    • command_logger_block_globalchat - Blocks Global Text Chat
    • command_logger_block_teamchat - Blocks Team Text Chat
    • command_logger_status_os - Set The OS Version Shown In Status Output
    • command_logger_status_ip - Set The IP+PORT String Shown In Status Output

    screenshot of joke status command


    Last edited by asherkin; 03-07-2022 at 03:58. Reason: Restore to previous version.
    canadianjeff is offline
    canadianjeff
    BANNED
    Join Date: Sep 2016
    Old 07-28-2020 , 02:11   Re: [L4D2] Command Hooker / Logger
    #2

    someone has requested that I add a convar/cvar to enable or disable the idle go_away_from_keyboard command when I get some time I will add this unless someone else manages to add it before I do
    canadianjeff is offline
    SkiPlix
    Member
    Join Date: Dec 2016
    Location: Argentina
    Old 07-28-2020 , 03:21   Re: [L4D2] Command Hooker / Logger
    #3

    Quote:
    Originally Posted by canadianjeff View Post
    someone has requested that I add a convar/cvar to enable or disable the idle go_away_from_keyboard command when I get some time I will add this unless someone else manages to add it before I do
    I would like to see that.
    SkiPlix is offline
    canadianjeff
    BANNED
    Join Date: Sep 2016
    Old 07-28-2020 , 07:15   Re: [L4D2] Command Hooker / Logger
    #4

    done uploading changes now with convars
    canadianjeff is offline
    AXVXA
    Junior Member
    Join Date: Jan 2020
    Old 08-18-2020 , 22:14   Re: [L4D2] Command Hooker / Logger
    #5

    This plugin will be useful
    AXVXA is offline
    canadianjeff
    BANNED
    Join Date: Sep 2016
    Old 08-22-2020 , 10:29   Re: [L4D2] Command Hooker / Logger
    #6

    thank you that is what I was going for
    canadianjeff is offline
    canadianjeff
    BANNED
    Join Date: Sep 2016
    Old 11-08-2020 , 09:54   Re: [L4D2]
    #7

    updated this plugin to version 1.10 more work will be done this week to help catch hackers
    canadianjeff is offline
    Mystik Spiral
    Senior Member
    Join Date: Oct 2020
    Location: Orlando, FL
    Old 11-10-2020 , 12:05   Re: [ANY] Command Logger
    #8

    In the original post, it shows your last update with the comment: "Last edited by canadianjeff; Yesterday at 02:18 AM. Reason: Updated To 1.12", but the source code still shows the plugin version as 1.10.

    I also noticed your CreateConVar section does not include an AutoExecConfig.

    Last edited by Mystik Spiral; 11-10-2020 at 12:14. Reason: added CreateConVar notification
    Mystik Spiral is offline
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 11-10-2020 , 18:28   Re: [ANY] Command Logger
    #9

    If i am only interested by hiding the bots, what code should i leave ?
    JLmelenchon is offline
    canadianjeff
    BANNED
    Join Date: Sep 2016
    Old 11-17-2020 , 13:26   Re: [ANY] Command Logger
    #10

    sorry working out some bugs 1.12 will be uploaded soon
    canadianjeff 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 11:49.


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