Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

Client crash block

by Dr.G · 2009-11-25 · 14 replies · 144 views · 19 downloads

Read the thread (15 posts)

From the first post

DO the code you made for blocking that %s exploit can you post that again, here?

Added later in the thread

dod_chatcrash_block.sma Plugin Source 2 KB 19 dl Download Compile

The thread

All 15 posts from 5 people on Client crash block, kept as they were written.

Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
11-24-2009, 09:09 PM #1

DO the code you made for blocking that %s exploit can you post that again, here?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
11-25-2009, 01:21 AM #2
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}n
Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
11-25-2009, 10:15 AM #3

wtf was that all, thought you made some fancy shit lol

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
12-08-2009, 03:57 AM #4

We've had a few players crash our clients with this glitch, so we installed a script that auto-bans anyone that tries it.

[ [SOL] Psycho
posted here
Posts: 60
Threads: 5
Joined: Dec 2007
12-08-2009, 08:25 AM #5

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?

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
12-10-2009, 01:29 AM #6

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.

Zor
posted here
Posts: 688
Threads: 75
Joined: Jun 2006
12-10-2009, 05:29 PM #7

Merged the posts from the chat into this thread! Thanks for making it happen!rnrnCheers!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-10-2009, 06:28 PM #8

yay lets show everyone how to do it

Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
12-10-2009, 09:53 PM #9

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

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
12-10-2009, 11:18 PM #10

Posted. The source code is exactly the same as what was submitted above.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-10-2009, 11:44 PM #11

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

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
12-11-2009, 02:57 AM #12

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.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-11-2009, 04:51 AM #13

ahh see how dumb i am.. i took away my admin but never did amx_reloadadmins before i tried it nnnlol silly me

Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
01-22-2010, 09:48 PM #14

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

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-22-2010, 11:26 PM #15
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
nnnstill works for me

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC