A lua script to debug/print net messages and console commands in Garry's Mod.
- Download the latest release from https://github.com/HexaneNetworks/Gmod.NetLibraryDebug/releases
- Extract the
Gmod.NetLibraryDebug
folder from the compressed file and upload it to your addons folder on your server. - Restart the server and you'll start to see the net messages appear. These are normal. Keep the script on the server and check back to your console when you believe one is being abused.
This script prints net messages and ran console commands to your server's console to allow you to debug issues such as net exploits which are commonly abused if an addon is written poorly.
Most of the time, if a player is attempting to run a net message crash exploit, it'll simply spam the vulnerable net message which will be obvious in the console.
Simply removing the addon or fixing the code will solve it.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gm_spawn args: models/props_lab/filecabinet02.mdl 0.00 000000000.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gm_spawn args: models/props_trainstation/clock01.mdl 0.00 000000000.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gm_spawn args: models/props_trainstation/TrackSign02.mdl 0.00 000000000.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gm_spawn args: models/props_junk/MetalBucket01a.mdl 0.00 000000000.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gm_spawn args: models/props_interiors/ElevatorShaft_Door01a.mdl 0.00 000000000.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gmod_undo args: None.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gmod_tool args: balloon.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gmod_tool args: button.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gmod_tool args: duplicator.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gmod_tool args: dynamite.
ServerLog: Player 'Hyro' (STEAM_0:1:53406071) (IP:27005) has executed this command: gmod_tool args: emitter.
ServerLog: Net message 'properties' (3) received (0.01kb (15b)) Client: Hyro (STEAMID: STEAM_0:1:53406071)
- Updated the folder structure
- Pass the argument string (argStr)
- Raised Threshold for antinetspam
- Added Player IP Logging
- Complete Code Revamp
- Initial Release
Some DRM's included with addons (specifically with gmodstore scripts) won't work when this script is installed on your server. If you experience issues with a DRM conflicting with this script, you'll have to remove this script or temporary disable the addon with DRM. "Xeon" DRM commonly abruptly breaks with scripts like these.