Raised This Month: $ Target: $400
 0% 

[ANY] Spray Exploit Fixer (2.22) [28-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
bottiger
AlliedModders Donor
Join Date: Dec 2010
Plugin ID:
7055
Plugin Version:
2.22
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Deletes bad sprays and prevents them from crashing clients.
    Old 05-01-2020 , 00:54   Re: [ANY] Spray Exploit Fixer (1.3) [26-Apr-2020]
    Reply With Quote #1

    Just a question, why do you have a prehook and a post hook? Why not move "DHookGetParamString(hParams, 1, g_sFilename, sizeof(g_sFilename));" to the beginning of the post hook and get rid of the prehook?
    __________________
    bottiger is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 05-01-2020 , 01:15   Re: [ANY] Spray Exploit Fixer (1.3) [26-Apr-2020]
    Reply With Quote #2

    Quote:
    Originally Posted by bottiger View Post
    Just a question, why do you have a prehook and a post hook? Why not move "DHookGetParamString(hParams, 1, g_sFilename, sizeof(g_sFilename));" to the beginning of the post hook and get rid of the prehook?
    Cuz there are cases where params can only be readable in pre hooks and return NULL or different results in post hooks, at least that's what I know about DHooks so far.
    cravenge is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-10-2020 , 09:37   Re: [ANY] Spray Exploit Fixer (1.3) [26-Apr-2020]
    Reply With Quote #3

    Quote:
    Originally Posted by bottiger View Post
    Just a question, why do you have a prehook and a post hook? Why not move "DHookGetParamString(hParams, 1, g_sFilename, sizeof(g_sFilename));" to the beginning of the post hook and get rid of the prehook?
    What Cravenge said. Params not always available in post hook. This could all be moved to pre hook since the file is valid then, but I'm keeping the check in post hook to make sure.



    Code:
    1.4 (10-May-2020)
        - Added support for "Zombie Panic! Source" game. Requires gamedata update.
        - Fixed "sm_spray_test" timing out when checking many sprays. Thanks to "Sreaper" for reporting and testing.
        - Now checks 50 files and waits 0.1 seconds before checking the next batch.
        - TF2 updated to fix clients crashing, but this plugin is still recommended to delete the other randomly uploaded user files.
    (also 120 of 125 my plugins updated lol)
    __________________

    Last edited by Silvers; 05-11-2020 at 04:08.
    Silvers is offline
    CliptonHeist
    Senior Member
    Join Date: Feb 2016
    Old 05-13-2020 , 21:30   Re: [ANY] Spray Exploit Fixer (1.4) [10-May-2020]
    Reply With Quote #4

    Been having this issue with latest version of plugin on HL2:DM Linux, SM 1.10.0.6458
    Code:
    L 05/13/2020 - 17:59:45: [SM] Exception reported: Failed to find "CGameClient::FileReceived" signature.
    L 05/13/2020 - 17:59:45: [SM] Blaming: spray_exploit_fixer.smx
    L 05/13/2020 - 17:59:45: [SM] Call stack trace:
    L 05/13/2020 - 17:59:45: [SM]   [0] SetFailState
    L 05/13/2020 - 17:59:45: [SM]   [1] Line 84, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\spray_exploit_fixer.sp::OnPluginStart
    L 05/13/2020 - 17:59:45: [SM] Unable to load plugin "spray_exploit_fixer.smx": Error detected in plugin startup (see error logs)
    I downloaded the plugin files again and replaced them as well as dhooks but it didn't help :c

    Last edited by CliptonHeist; 05-13-2020 at 21:33.
    CliptonHeist is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-14-2020 , 15:07   Re: [ANY] Spray Exploit Fixer (1.5) [14-May-2020]
    Reply With Quote #5

    Thank you, fixed gamedata issue.

    Code:
    1.5 (14-May-2020)
        - Added better error log message when gamedata file is missing.
        - Fixed gamedata for HL2:DM. Thanks to "CliptonHeist" for reporting and "asherkin" for explaining engine != game.
        - (Info: the gamedata "engine" key for HL2:DM uses "hl2dm" (the engine name) while the "game" part uses "hl2mp" (game name) e.g. for offsets).
    __________________
    Silvers is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 07-21-2020 , 00:52   Re: [ANY] Spray Exploit Fixer (1.6) [15-Jul-2020]
    Reply With Quote #6

    Hi Silvers,

    Does OnFileSend and OnFileReceive not help out a little here? Just trying to understand why dhooks is required :-). Additionally, how I've gone even further with this is hooking the TE event.
    KyleS is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-21-2020 , 02:34   Re: [ANY] Spray Exploit Fixer (1.6) [15-Jul-2020]
    Reply With Quote #7

    OnFileReceive happens when a file is being sent, not yet received by the server (so no file exists and cannot be checked). OnFileSend I guess only happens when clients request the file (so would duplicate checks unless storing a flag of known checked ones basically) so gone with detour when the file has finished being sent so can check only on send and if bad delete. Pretty sure post hook detour not required but I gone with checking there instead of pre hook just to make sure games done with it and file is valid.
    __________________

    Last edited by Silvers; 07-21-2020 at 02:38.
    Silvers is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 07-21-2020 , 20:37   Re: [ANY] Spray Exploit Fixer (1.6) [15-Jul-2020]
    Reply With Quote #8

    Quote:
    Originally Posted by Silvers View Post
    OnFileReceive happens when a file is being sent, not yet received by the server (so no file exists and cannot be checked). OnFileSend I guess only happens when clients request the file (so would duplicate checks unless storing a flag of known checked ones basically) so gone with detour when the file has finished being sent so can check only on send and if bad delete. Pretty sure post hook detour not required but I gone with checking there instead of pre hook just to make sure games done with it and file is valid.
    Uploading or similar doesn't actually matter here, same with holding the file. If the file is requested, scan it and block if it's malicious. If the decal request happens before or after that gives you the offending player who tried and you can do what you want with them.

    Does that make sense?
    KyleS is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-03-2020 , 21:09   Re: [ANY] Spray Exploit Fixer (1.6) [15-Jul-2020]
    Reply With Quote #9

    This plugin has undergone some big changes and is now version 2.0. No longer requires DHooks and should support all games.
    __________________

    Last edited by Silvers; 08-09-2020 at 09:58.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-09-2020 , 09:57   Re: [ANY] Spray Exploit Fixer (2.0) [09-Aug-2020]
    Reply With Quote #10

    Code:
    2.0 (09-Aug-2020)
        - Now should support all games.
        - Added more checks for invalid files.
        - Added cvar "spray_exploit_fixer_path" to specify the downloads folder if not correctly detected.
        - Removed gamedata and DHooks dependency.
        - Removed cvar "spray_exploit_fixer_name".
    __________________
    Silvers is offline
    Reply



    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 19:17.


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