中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-06 13:34
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » U盘病毒免疫 查看 802 回复 2
楼 主 U盘病毒免疫 发表于 2007-11-15 22:06 ·  中国 广东 深圳 电信
新手上路
积分 13
发帖 5
注册 2007-09-12 14:24
18年会员
UID 97187
性别 男
状态 离线
由于最近U盘病毒疯狂! 在这里贴这个小批。。
没有地方上传只贴代码。。本工具只是免疫工具不是专杀。 希望高手有加入专杀!!
——————————————————————————————————————
@echo off
color 34
echo 按任何键开始免疫。。支持的盘有 C D E H G
pause
cd\
c:
md autorun.inf
attrib +h autorun.inf
cd autorun.inf
mkdir yo...\
cd\

md copy.exe
attrib +h copy.exe
cd copy.exe
mkdir yo...\
cd\

md host.exe
attrib +h host.exe
cd host.exe
mkdir yo...\
cd\

md ntdelect.com
attrib +h ntdelect.com
cd ntdelect.com
mkdir yo...\
cd\

md sos.exe
attrib +h sos.exe
cd sos.exe
mkdir yo...\
cd\

d:
md autorun.inf
attrib +h autorun.inf
cd autorun.inf
mkdir yo...\
cd\

md copy.exe
attrib +h copy.exe
cd copy.exe
mkdir yo...\
cd\

md host.exe
attrib +h host.exe
cd host.exe
mkdir yo...\
cd\

md ntdelect.com
attrib +h ntdelect.com
cd ntdelect.com
mkdir yo...\
cd\

md sos.exe
attrib +h sos.exe
cd sos.exe
mkdir yo...\
cd\

e:
md autorun.inf
attrib +h autorun.inf
cd autorun.inf
mkdir yo...\
cd\

md copy.exe
attrib +h copy.exe
cd copy.exe
mkdir yo...\
cd\

md host.exe
attrib +h host.exe
cd host.exe
mkdir yo...\
cd\

md ntdelect.com
attrib +h ntdelect.com
cd ntdelect.com
mkdir yo...\
cd\

md sos.exe
attrib +h sos.exe
cd sos.exe
mkdir yo...\
cd\

f:
md autorun.inf
attrib +h autorun.inf
cd autorun.inf
mkdir yo...\
cd\

md copy.exe
attrib +h copy.exe
cd copy.exe
mkdir yo...\
cd\

md host.exe
attrib +h host.exe
cd host.exe
mkdir yo...\
cd\

md ntdelect.com
attrib +h ntdelect.com
cd ntdelect.com
mkdir yo...\
cd\

md sos.exe
attrib +h sos.exe
cd sos.exe
mkdir yo...\
cd\

h:
md autorun.inf
attrib +h autorun.inf
cd autorun.inf
mkdir yo...\
cd\

md copy.exe
attrib +h copy.exe
cd copy.exe
mkdir yo...\
cd\

md host.exe
attrib +h host.exe
cd host.exe
mkdir yo...\
cd\

md ntdelect.com
attrib +h ntdelect.com
cd ntdelect.com
mkdir yo...\
cd\

md sos.exe
attrib +h sos.exe
cd sos.exe
mkdir yo...\
cd\

g:
md autorun.inf
attrib +h autorun.inf
cd autorun.inf
mkdir yo...\
cd\

md copy.exe
attrib +h copy.exe
cd copy.exe
mkdir yo...\
cd\

md host.exe
attrib +h host.exe
cd host.exe
mkdir yo...\
cd\

md ntdelect.com
attrib +h ntdelect.com
cd ntdelect.com
mkdir yo...\
cd\

md sos.exe
attrib +h sos.exe
cd sos.exe
mkdir yo...\
cd\

cls

echo 本机免疫完成!!

pause

exit

[ Last edited by yotodo on 2007-11-15 at 10:30 PM ]
2 发表于 2007-11-15 23:28 ·  中国 北京 光环新网
新手上路
积分 16
发帖 7
注册 2007-08-11 20:18
18年会员
UID 94979
性别 男
状态 离线
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
把这个主键设置任何人不可读,就免疫了,双击优盘也不会中毒
3 发表于 2007-11-15 23:30 ·  中国 北京 光环新网
新手上路
积分 16
发帖 7
注册 2007-08-11 20:18
18年会员
UID 94979
性别 男
状态 离线
http://www.helge.mynetcologne.de/setacl/
下载setacl
禁止
setacl CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 /registry /deny everyone /full
恢复
setacl CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 /registry /grant everyone /full
论坛跳转: