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