Raised This Month: $241 Target: $400
 60% 

Notices

[ALL] Disconnect Message Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author
atom0s
Senior Member
Join Date: Jul 2009
Plugin ID:
1589
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks disconnect messages from users when they leave the server.
    Unapprover:
    Reason for Unapproving:
    Redundant.
    Old 04-05-2010 , 02:10   [ALL] Disconnect Message Blocker
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (disconnect.sp - 1011 views - 1.5 KB)

    Last edited by atom0s; 04-11-2010 at 02:52.
    atom0s is offline
    lionheart1066
    Senior Member
    Join Date: Aug 2009
    Old 04-05-2010 , 09:53   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #2

    Sounds interesting, however I've not seen this happen in TF2.
    lionheart1066 is offline
    Lagunka
    New Member
    Join Date: Apr 2010
    Old 04-05-2010 , 19:56   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #3

    Yeah, I don't think anyone's programmed a custom disconnect message plugin for tf2, so it's not a problem there...currently.
    Lagunka is offline
    atom0s
    Senior Member
    Join Date: Jul 2009
    Old 04-05-2010 , 21:11   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #4

    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.
    atom0s is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-06-2010 , 13:23   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #5

    Well there is always space to improve. What about you put couple msgs and use them random. That would be great and fun feature ;)
    __________________
    shustas is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 04-06-2010 , 13:37   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #6

    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
    KyleS is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-08-2010 , 18:18   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #7

    1 question. Does this overide the custom kick or ban reason as well?
    __________________
    shustas is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 04-08-2010 , 19:26   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #8

    FYI, this is implemented in the newest version of rcon locker
    psychonic is offline
    Kevin_b_er
    SourceMod Donor
    Join Date: Feb 2009
    Old 04-08-2010 , 20:53   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #9

    Quote:
    Originally Posted by Kyle12 View Post
    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
    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.
    Kevin_b_er is offline
    tigerox
    AlliedModders Donor
    Join Date: Oct 2008
    Location: Canada
    Old 04-09-2010 , 04:17   Re: [ALL] Disconnect Message Blocker
    Reply With Quote #10

    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);
    __________________
    tigerox is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:36.


    Powered by vBulletin®
    Copyright ©2000 - 2018, vBulletin Solutions, Inc.
    Theme made by Freecode