Description
Plugin for prevent the voice data overflow exploit that crash the clients on the server with this message:
Code:
Disconnect: Buffer overflow in net message.
And this spam on console:
Code:
Netchannel: unknown net message (48) from [Server IP Address:Port]
Tested recently on
my css server where people still try to use this exploit.
You will see the attempts on addons/sourcemod/logs/voicedata_crashfix.log
Example:
Code:
L 12/17/2022 - 20:09:41: [voicedata_crashfix.smx] username (ID: STEAM_0:0:{steamid} | IP: {client ip}) was kicked for trying to crash the server with voice data overflow. Total packets: 5800
Requeriments:
Latest sourcemod version with the new speaking natives.
Or
VoiceannounceEX and
this branch instead if you are using a old sourcemod version.
Cvars:
Autogenerated file on cfg/sourcemod/ on first load.
Code:
// How many packets per second max?
// -
// Default: "92"
sm_voicedatacrashfix_count "92"
// Punishment. 0 = Just mute, 1 = Kick, 2 = Perm ban
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_voicedatacrashfix_punishment "1"
Credits:
Credits to
this topic where people used the exploit on cs:go but valve fixed it, but this exploit still works on games like CS:S. I made some improvements and posted here for find it easily with support for old and recent sourcemod versions.
Download:
Main repository
Direct download
Code changes
For old sourcemod version use this:
Main repository
Direct download
Code changes
__________________