Client crash block
by Dr.G · 2009-11-25 · 14 replies · 144 views · 19 downloads
From the first post
The thread
All 15 posts from 5 people on Client crash block, kept as they were written.
Threads: 75
Joined: Nov 2007
DO the code you made for blocking that %s exploit can you post that again, here?
Threads: 103
Joined: May 2005
nn#include <amxmodx>nn#define PLUGIN "Client Freeze Exploit Fix"n#define VERSION "1.2"n#define AUTHOR "diamond-optic"nnnpublic plugin_init()n{n register_plugin(PLUGIN, VERSION, AUTHOR)n n register_clcmd("say","bug_hook",0,"")n register_clcmd("say_team","bug_hook",0,"")n}nnnpublic bug_hook(id)n{n static sArg[64]n read_args(sArg,63)nn if(containi(sArg,"%s") != -1)n return PLUGIN_HANDLEDn n return PLUGIN_CONTINUEn}nThreads: 75
Joined: Nov 2007
wtf was that all, thought you made some fancy shit lol
Threads: 24
Joined: Oct 2006
We've had a few players crash our clients with this glitch, so we installed a script that auto-bans anyone that tries it.
Threads: 5
Joined: Dec 2007
It would be nice if all server operators had your script to ban Vet. Then maybe players would think twice before trying this kind of stuff.rnrnWhat I am saying is would you kindly share?
Threads: 24
Joined: Oct 2006
This plugin is to block the glitch that can cause players to freeze up. It essentially does what D-O's plugin does, in that it blocks the say command, but it allows 1 entry (just in case its an honest mistake, and it takes multiple entries to cause the crash) and provides the option to kick and/or ban (controlled via CVar, default to do both). Why ban without kicking? Just for fun, the player won't know he's banned until he leaves and then tries to reconnect at a later time.nnOne thing to remember, insert the plugin ahead of any other plugin (especially the adminchat.amxx plugin) that might trap the 'say' command so it can filter before it gets to the other plugins.nnAnother point, if you use a word/swear filter, you can block the glitch by simply adding %s to the word list. Then again, ensure your swear filter is listed in your plugins.ini file ahead of most, if not all, other plugins.
Threads: 75
Joined: Jun 2006
Merged the posts from the chat into this thread! Thanks for making it happen!rnrnCheers!
Threads: 103
Joined: May 2005
yay lets show everyone how to do it
Threads: 75
Joined: Nov 2007
I dont think this should be public. And this is now fixed via dod_exploits v6.0.nnZor Iam gonna move this back to the private area, I hope you dont mind. If you move this back public again, I will ofcource not touch it.nn- Cheersnnn*EDIT*nn@VET: I think you should post your plugin again, but this time with a closed source (the amxx file only), just in case people dont wanna run the "whole" dod_exploits plugin.nn- Cheers
Threads: 24
Joined: Oct 2006
Posted. The source code is exactly the same as what was submitted above.
Threads: 103
Joined: May 2005
just found theres a way to still do the bug even running a plugin to block it...nnnnon-admins can use amx_chat to send a msg to the admins right.. well "amx_chat %s %s%s %s %s%s" still freezes the server, because the msg is sent via client_print and not a say/say_team command.. or something ..and i dont know right now if it also freezes when attempting to use the other amx say commands via console
Threads: 24
Joined: Oct 2006
I don't see where non-admins have default access to the amx_chat command. But they CAN chat with admins using team_say @... and can freeze it that way. That's why I mention to place the plugin ahead of the adminchat.amxx plugin. Is there a method I've overlooked?nnAnd yes, an admin can still cause the freeze using amx_chat, _say, _csay, _psay and _tsay. So you either have to trust your admins or modify the adminchat plugin.nnOf course it would all be simpler if Valve would just fix it.
Threads: 103
Joined: May 2005
ahh see how dumb i am.. i took away my admin but never did amx_reloadadmins before i tried it nnnlol silly me
Threads: 75
Joined: Nov 2007
I just tryed this bug on a server, no crash. The chat msg. just showed some boxes, so i guess steam solved it. Just FYI
Threads: 103
Joined: May 2005
I just tryed this bug on a server, no crash. The chat msg. just showed some boxes, so i guess steam solved it. Just FYInnnstill works for me

