|
发表于 2007-6-1 15:36:57
|
显示全部楼层
来自 中国–上海–上海
回复: 大家一起来把<CMD下载攻击服务器>解决掉
#include <amxmod>
public plugin_init()
{
register_plugin("Anti Hacker","1","Manip")
register_concmd("cmd","cmdhandle")
return PLUGIN_CONTINUE
}
public cmdhandle(id) {
new cmd[61]
read_args(cmd,60)
if(contain(cmd,"dlfile"))
{
new authid[32]
get_user_authid(id,authid,31)
server_cmd("banid 0.0 %s kick",authid)
log_to_file("hack.log","AUTHID: %s tried to use this command on server %s",authid,cmd)
log_to_file("hack.log","Hacker!")
}
return PLUGIN_HANDLED
这个是我在AMX官方找到,大家帮忙来测试一下,不知道行不行。
[URL="http://djeyl.net/forum/index.php?showtopic=25387&hl=boffix_dlfile_fix_v21\.zip"][/URL] |
|