AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [ALL] Disconnect Message Blocker (https://forums.alliedmods.net/showthread.php?t=123378)

atom0s 04-05-2010 02:10

[ALL] Disconnect Message Blocker
 
1 Attachment(s)
What is it?

Simple plugin to block disconnect messages from clients when they leave the server. This blocks the known exploit with the custom disconnect which can be used to kick everyone from a server and such.

How to use?

Simply compile it yourself, or download the compiled version here and use it.

Can I change the message shown?

Yes, a cvar has been added to allow you to set a custom disconnect message, simply add the following to your server.cfg:

PHP Code:

disconnect_message "Your reason here." 

The cvar has a max length of 64 chars, I don't know what the max size is for a valid disconnect message, if anyone knows it I will adjust as needed. I set it to 64 for now as a base. I suggest not using long messages though.

Changes

v1.1.0
- Removed unneeded UnhookEvent call.
- Removed unneeded events. (OnMapStart/OnMapEnd)
- Added cvar for custom message since people kept asking.

v1.0.0
- Initial release.

lionheart1066 04-05-2010 09:53

Re: [ALL] Disconnect Message Blocker
 
Sounds interesting, however I've not seen this happen in TF2.

Lagunka 04-05-2010 19:56

Re: [ALL] Disconnect Message Blocker
 
Yeah, I don't think anyone's programmed a custom disconnect message plugin for tf2, so it's not a problem there...currently.

atom0s 04-05-2010 21:11

Re: [ALL] Disconnect Message Blocker
 
I marked this as "all" because it hooks a generic Source engine event. I've only tested it in CS:S personally, but should work in any mod.

shustas 04-06-2010 13:23

Re: [ALL] Disconnect Message Blocker
 
Well there is always space to improve. What about you put couple msgs and use them random. That would be great and fun feature ;)

KyleS 04-06-2010 13:37

Re: [ALL] Disconnect Message Blocker
 
What a shame, I had asked about this in #sourcemod over 2 weeks ago and was assured by multiple people that it cannot be prevented with SourceMod.

I'm glad you tried and succeeded atom0s :wink:

shustas 04-08-2010 18:18

Re: [ALL] Disconnect Message Blocker
 
1 question. Does this overide the custom kick or ban reason as well?

psychonic 04-08-2010 19:26

Re: [ALL] Disconnect Message Blocker
 
FYI, this is implemented in the newest version of rcon locker

Kevin_b_er 04-08-2010 20:53

Re: [ALL] Disconnect Message Blocker
 
Quote:

Originally Posted by Kyle12 (Post 1141427)
What a shame, I had asked about this in #sourcemod over 2 weeks ago and was assured by multiple people that it cannot be prevented with SourceMod.

I'm glad you tried and succeeded atom0s :wink:

There was no way to filter the client disconnect messages only. There still isn't.

This plugin (and anything like it) removes all manners of reasons for disconnection. This includes network errors, kicks, bans, and malicious disconnect messages from client plugins.

tigerox 04-09-2010 04:17

Re: [ALL] Disconnect Message Blocker
 
Would this work? Assuming the exploits are some kind of overflow.
Code:

decl String:strReason[48];
GetEventString(event, "reason", strReason, sizeof(strReason));
SetEventString(hEvent, "reason", strReason);



All times are GMT -4. The time now is 09:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.