Monthly Target: $400 Donations: $147
 36% 

Scortched Earth


Post New Thread Reply   
 
Thread Tools Display Modes
Author
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Plugin ID:
1034
Plugin Version:
0.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Disables all commands except those on a whitelist
    Old 07-24-2009 , 02:32   Scortched Earth
    Reply With Quote #1

    This plugin will disable (add the cheats flag to) all commands that have been determined to be largely unneeded. This is done since at this point maintaining a list of "bad" commands has become useless.

    There's a few exceptions, other then the command list: Any commands beginning with the following will be ignored:
    ma_
    mani_
    sm_
    es_

    This may break other plugins, specifically those dependent on executing commands
    This was only designed with CSS/DODS/TF2 servers in mind. Using it on other games may be a bad idea

    There is no configuration variables available for this.

    Please let me know of any commands you feel should be added to the whitelist.
    Attached Files
    File Type: sp Get Plugin or Get Source (scortchedearth.sp - 1050 views - 6.5 KB)
    __________________
    Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/

    Last edited by devicenull; 07-24-2009 at 02:35.
    devicenull is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 07-24-2009 , 04:09   Re: Scortched Earth
    Reply With Quote #2

    Shouldnt you allow people to change their rates?
    __________________

    DontWannaName is offline
    devicenull
    Veteran Member
    Join Date: Mar 2004
    Location: CT
    Old 07-24-2009 , 14:35   Re: Scortched Earth
    Reply With Quote #3

    Quote:
    Originally Posted by DontWannaName View Post
    Shouldnt you allow people to change their rates?
    This is only commands that exist on the server. All the rate commands should be uneffected.
    __________________
    Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
    devicenull is offline
    Stinkyfax
    BANNED
    Join Date: Aug 2007
    Old 07-31-2009 , 16:34   Re: Scortched Earth
    Reply With Quote #4

    Can't use cheat cvar sm_show_activity in multiplayer, unless the server has sv_c
    heats set to 1.
    Can't use cheat cvar sm_menu_sounds in multiplayer, unless the server has sv_che
    ats set to 1.
    Can't use cheat cvar sm_vote_delay in multiplayer, unless the server has sv_chea
    ts set to 1.
    Can't use cheat cvar sm_datetime_format in multiplayer, unless the server has sv
    _cheats set to 1.
    and so on....
    Stinkyfax is offline
    Stinkyfax
    BANNED
    Join Date: Aug 2007
    Old 07-31-2009 , 16:44   Re: Scortched Earth
    Reply With Quote #5

    if (StrContains(curCmd,prefixlist[i],false))

    Returns -1 on fail and index on succ.
    The fun thing is that 0 is false for SM while all the sm_ have index 0 of substring "sm_"... change to if (... >= 0)
    Stinkyfax is offline
    Stinkyfax
    BANNED
    Join Date: Aug 2007
    Old 07-31-2009 , 16:51   Re: Scortched Earth
    Reply With Quote #6

    found another reason it fails...
    the "continue" in condition is adressed to for loop, not while.

    P.S. now it works, finally
    Stinkyfax is offline
    M.I.A.
    Junior Member
    Join Date: Jul 2009
    Old 09-06-2009 , 08:24   Re: Scortched Earth
    Reply With Quote #7

    Hello.

    I would like to comment that this may in fact be the best exploit blocking plugin ever made and avaliavble. I am shocked only 2 severs (counting mine LOL) are using it.

    I recommend this to heavily targeted popular servers server owners.

    This is a script I imagined thinking for why my server was crashing.. I later found out, it exists.

    I now would like to find out if running this with other command blockers causes conflicts and are command blockers even actually needed except for mani/SM commands.

    please confirm devicenull that you just ended 99.9% of HLS exploits Or are their still some fancy valve developer commands that cans till be used to harm the server. only he knows the answer.

    Last edited by M.I.A.; 09-06-2009 at 08:30.
    M.I.A. is offline
    rautamiekka
    Veteran Member
    Join Date: Jan 2009
    Location: Finland
    Old 11-21-2009 , 01:43   Re: Scortched Earth
    Reply With Quote #8

    Quote:
    Originally Posted by M.I.A. View Post
    Hello.

    I would like to comment that this may in fact be the best exploit blocking plugin ever made and avaliavble. I am shocked only 2 severs (counting mine LOL) are using it.

    I recommend this to heavily targeted popular servers server owners.

    This is a script I imagined thinking for why my server was crashing.. I later found out, it exists.

    I now would like to find out if running this with other command blockers causes conflicts and are command blockers even actually needed except for mani/SM commands.

    please confirm devicenull that you just ended 99.9% of HLS exploits Or are their still some fancy valve developer commands that cans till be used to harm the server. only he knows the answer.
    The inpopularity is due to the amount of heavy work required to make it work with everything you have on the Server. However I do see the point in your recommendation.
    __________________
    Links to posts I received Karma from:
    Big thanks to all who gave Karma
    rautamiekka is offline
    Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
    vertexshader
    Senior Member
    Join Date: Mar 2008
    Old 12-07-2009 , 11:14   Re: Scortched Earth
    Reply With Quote #9

    Devicenull, I sent u a mail with some crash problem Check it pls

    Quote:
    [SM] Native "GetConVarFlags" reported: Invalid convar handle 0 (error 4)
    L 12/06/2009 - 16:019: [SM] Displaying call stack trace for plugin "scortchedearth.smx":
    L 12/06/2009 - 16:019: [SM] [0] Line 332, /home/groups/alliedmodders/forums/files/7/2/46025.attach::OnPluginStart()
    L 12/06/2009 - 16:10:55: [SM] Native "UnhookEvent" reported: Invalid hook callback specified for game event "bomb_planted"
    L 12/06/2009 - 16:10:55: [SM] Displaying call stack trace for plugin "c4timer.smx":
    L 12/06/2009 - 16:10:55: [SM] [0] Line 83, /home/groups/alliedmodders/forums/files/1/4/9/5/8/15254.attach::OnPluginEnd()
    OS: Win 7 x64

    Protocol version 7
    Exe version 1.0.0.34 (cstrike)
    Exe build: 12:47:15 Aug 26 2009 (3945)

    Metamod:Source version 1.8.0-dev
    Build ID: 670:daed02c52b13-dev
    Loaded As: Valve Server Plugin
    Compiled on: Oct 29 2009
    Plugin interface version: 11:7
    SourceHook version: 4:4

    SourceMod Version: 1.3.0-dev
    SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.3.0-dev)
    SourcePawn API: v1 = 4, v2 = 3
    Compiled on: Nov 23 2009 05:42:21
    Build ID: 2865:f3551d6b1300-dev
    vertexshader is offline
    deadlyruler
    Member
    Join Date: Dec 2008
    Old 01-21-2010 , 19:30   Re: Scortched Earth
    Reply With Quote #10

    Quote:
    Originally Posted by Stinkyfax View Post
    if (StrContains(curCmd,prefixlist[i],false))

    Returns -1 on fail and index on succ.
    The fun thing is that 0 is false for SM while all the sm_ have index 0 of substring "sm_"... change to if (... >= 0)
    I really need this plugin working to keep my server from being exploited by crashers/hackers. Could you please show me the whole line after you replace it? So that I can change the source and get this working on my server.
    deadlyruler 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 02:43.


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