AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   [Release] Anti "cmd dlfile" Plugin [Open Source] (https://forums.alliedmods.net/showthread.php?t=129450)

Rulzy 06-13-2010 01:47

[Release] Anti "cmd dlfile" Plugin [Open Source]
 
1 Attachment(s)
Anti "cmd dlfile" Plugin


When cvar sv_allowdownload is 1, player can use command like "cmd dlfile maps/de_dust2.bsp" in console to attack server.
This plugin can fix this bug.

NOTE: A new update is rewritten by Arkshine, thanks for him. Your can download it from:
http://forums.alliedmods.net/showthread.php?p=1505950#post1505950

And say sorry to all, I am have no time to update this plugin.

1. Requirement
metamod v1.19

2. Installation Steps
(1) Create new folder "{MODDIR}/addons/antidlfile";
(2) Copy file "antidlfile.dll" or "antidlfile_i386.so" to folder "{MODDIR}/addons/antidlfile";
(3) Add a new line in "{MODDIR}/addons/metamod/plugins.ini" (Windows):
Code:

win32 addons/antidlfile/antidlfile.dll
or (Linux)
Code:

linux addons/antidlfile/antidlfile_i386.so
(4) Restart your server. If you see "[ANTI-DLFILE] Patch "cmd dlfile" successful!" in server console, it means the patch is applied.


3. Change Logs

v1.4 2010-10-18
(1) Add cvar "antidlfile_enable" to control antidlfile on or off.
(2) Improve the anti-dlfile capabilities.

v1.3 2010-06-17
Add linux version.

v1.2 2010-06-16
(1) Rewritten using C++ language (the original is written in Delphi).
(2) Do not blocked "cmd dlfile !MD5..." command(This command should be used to download custom.hpk file).

v1.1 2010-06-12
(1) Support Listen Server & Dedicated Server;
(2) Do not kick player yet, just blocked the "cmd dlfile" command.

v1.0 2010-06-08
First release.


Author: Rulzy
Website: China DT Club (http://www.dt-club.net/)



防 cmd dlfile 攻击补丁

当参数 sv_allowdownload 为 1 时,玩家可以通过在控制台输入类似如下命令 "cmd dlfile maps/de_dust2.bsp" 攻击服务器。
这个插件可以修复此BUG。

说明:Arkshine已经重写了一个新版本,在此对他表示感谢。你可以从下面这个链接下载新版 本:
http://forums.alliedmods.net/showthread.php?p=1505950#post1505950

同里在此对大家说声抱歉,我没有时间更新此插件。


一、需求
metamod v1.19

二、安装方法
1、新建目录“{MODDIR}/addons/antidlfile”。
2、将文件“antidlfile.dll”(Windows)或“antidlfile_i3 86.so”(Linux)复制到目录“{MODDIR}/addons/antidlfile”。
3、在“{MODDIR}/addons/metamod/plugins.ini”中增加一行(Windows):
Code:

win32 addons/antidlfile/antidlfile.dll
或(Linux)
Code:

linux addons/antidlfile/antidlfile_i386.so
4、重启你的CS服务器。如果启动时在服务器控制台看到“[ANTI-DLFILE] Patch "cmd dlfile" successful!”,则表示补丁应用成功。


三、更新记录

v1.4 2010-10-18
1、增加参数 antidlfile_enable 来允许打开或关闭防炸功能。
2、完善防炸功能。

v1.3 2010-06-17
增加 linux 版本.

v1.2 2010-6-16
1、用 C++ 语言重写(原来是用 Delphi 语言写的)。
2、允许使用“cmd dlfile !MD5...”命令(此命令应该是用于下载 custom.hpk 文件的)。

v1.1 2010-06-12
1、同时支持单机建主(Listen Server)和专用服务器(Dedicated Server)。
2、不再踢出玩家,仅过滤掉“cmd dlfile”命令。

v1.0 2010-06-08
第一次发布


作者:Rulzy
网站:中国点通论坛 (http://www.dt-club.net/)

marianow 06-13-2010 03:37

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin [Open Source]
 
good job !
i know this bug, i hate the lammerssssssssss

.so file?

TSuNaMi_ 06-13-2010 13:34

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin [Open Source]
 
heyy this is perfect but i need linux version. Can you compile linux so file ?

YamiKaitou 06-13-2010 20:23

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin [Open Source]
 
What language is your code in?

wsg900 06-14-2010 02:35

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin [Open Source]
 
哈哈,在这里也发布了啊,DT~~~~~~~

Rulzy 06-14-2010 05:01

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin [Open Source]
 
Quote:

Originally Posted by YamiKaitou (Post 1208081)
What language is your code in?

Delphi.

Quote:

Originally Posted by marianow (Post 1207368)
.so file?

Quote:

Originally Posted by TSuNaMi_ (Post 1207722)
heyy this is perfect but i need linux version. Can you compile linux so file ?

I am rewriting the plugin in C++ language. Please wait.

TSuNaMi_ 06-14-2010 05:55

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin [Open Source]
 
thanks rulyzy we wait :)

Rulzy 06-16-2010 04:27

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin V1.2 [Open Source]
 
V1.2 release.

The linux version is not completed.

TSuNaMi_ 06-16-2010 09:23

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin V1.2 [Open Source]
 
Quote:

Originally Posted by Rulzy (Post 1210216)
V1.2 release.

The linux version is not completed.

we wait it thanks =)

also you block servercmd dlfile commans pls.

marianow 06-16-2010 12:53

Re: [Release] CS 1.5 Anti "cmd dlfile" Plugin V1.2 [Open Source]
 
waiting^!^!^!^!


All times are GMT -4. The time now is 22:40.

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