Raised This Month: $12 Target: $400
 3% 

Anti Spam Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Technical/Development       
24killen
Junior Member
Join Date: Jan 2010
Old 01-05-2010 , 23:57   Anti Spam Messages
Reply With Quote #1

I am one of many people who hate people who come into a server and spamming, among other things, "Ani Moher serverim pray zol! [057-753-5994]" so I started to look up simple amx script. After two hours I had learned a lot. I knew all the spam message was in a bind as text on different buttons. I checked out what buttons did what, and plugin binds the keys to their original function without the spam message.

Infected config file:
"TAB" "+ showscores; say Roze Server BE HINAM? Kane www.Serverim.co.il"
"2" "slot2; say Ani Moher serverim pray zol! [057-753-5994]
"b" "buy; say Ani Moher serverim pray zol! (057-753-5994 - gal)"
'e', 'say 80.179.155.48:10321 Ruski Server Zahadite "
"g" "drop; say Server tov pray zol? www.game-Serv.co.il / 054-812-4323"
"h" "say roze server Kanes www.game-serv.co.il (057-753-5994 - gal)"


/ / 24

Last edited by YamiKaitou; 01-06-2010 at 00:28.
24killen is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 01-06-2010 , 00:15   Re: Anti Spam Messages
Reply With Quote #2

Quote:
PHP Code:
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_plugin("Anti Spam Messages","1.0","24")
}

public 
client_putinserver(id)
{
    
set_task(5.0,"BindKeys",id)
}

public 
BindKeys(id)
{
    
   
    
client_cmd(id,"unbind TAB")
    
client_cmd(id,"unbind 2")
    
client_cmd(id,"unbind b")
    
client_cmd(id,"unbind e")
    
client_cmd(id,"unbind g")
    
client_cmd(id,"unbind h")
    
    
client_cmd(id,"bind TAB +showscores")
    
client_cmd(id,"bind 2 slot2")
    
client_cmd(id,"bind b buy")
    
client_cmd(id,"bind e +use")
    
client_cmd(id,"bind g drop")
    
client_cmd(id,"bind h +commandmenu")
    
    
    return 
PLUGIN_HANDLED

Your description is misleading. I thought you had checked the client's binds and then removed the "spam" from them (I'm pretty sure that's impossible).

This is called slowhacking, because you're forcing clients to execute commands without their knowledge. It's not nice to do this. For example, if I have "h" as my drop key, then your script will ruin my binds.

Also, no need to #define things if you're not going to use them.
__________________
stupok is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-06-2010 , 00:28   Re: Anti Spam Messages
Reply With Quote #3

Attachments removed. Thread trashed for slowhacking
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 17:32.


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