中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-02 23:44
48,038 主题排行 / 350,123 发帖 / 今日 1 篇 / 48,251 会员排行
DOS批处理 & 脚本技术(批处理室) » sxs病毒 U盘专杀脚本请大虾帮助
可打印版本  895 / 0
第1楼 kootoo 发表于 2007-01-04 02:17
初级用户 发帖 11 积分 28 来自 苏州
sxs病毒 U盘专杀脚本请大虾帮助
以下是自己编的 不知道有什么问题 运行了不奏效

rem 下面是清除SVOHOST.exe和 sxs.exe
for /f "skip=1 tokens=1,2 " %%i in ('tasklist') do if %%i equ conime.exe ntsd -c q -p %%j
for /f "skip=1 tokens=1,2 " %%i in ('tasklist') do if %%i equ SVOHOST.exe ntsd -c q -p %%j
for /f "skip=1 tokens=1,2 " %%i in ('tasklist') do if %%i equ sxs.exe ntsd -c q -p %%j
for /f "skip=1 tokens=1,2 " %%i in ('tasklist') do if %%i equ explore.exe ntsd -c q -p %%j
for /f "skip=1 tokens=1,2 " %%i in ('tasklist') do if %%i equ jvmlts.exe ntsd -c q -p %%j

set w=%windir%\system32\

attrib -r -h -s %w%SVOHOST.exe
attrib -r -h -s %w%sxs.exe
attrib -r -h -s %w%winscok.dll
attrib -r -h -s %w%noruns.reg
attrib -r -h -s %w%explore.exe
attrib -r -h -s %w%jvmlts.exe
attrib -r -h -s %w%jvmlts.dll
attrib -r -h -s %w%QQhx.dat

del /s /q %w%sxs.exe
del /s /q %w%SVOHOST.exe
del /s /q %w%winscok.dll
del /s /q %w%noruns.reg
del /s /q %w%explore.exe
del /s /q %w%jvmlts.exe
del /s /q %w%jvmlts.dll
del /s /q %w%QQhx.dat


setlocal enabledelayedexpansion
for /f "skip=1 tokens=1,2 delims=\" %%a in ('fsutil fsinfo drives^|find /v ""') do (
set aa=%%a
set aa=!aa:~-2!
for %%i in (!aa!) do (
del /q /ah %%i\sxs.exe & del /q /ah %%i\autorun.inf & attrib.exe -r -h -s %%i\RECYCLER && cd %%i\RECYCLER && del . /q /ah /as & cd \))

rem 下面的是清除sxs.exe的残留注册文件
echo Windows Registry Editor Version 5.00 >repair.reg
echo. >>repair.reg
echo >>repair.reg
echo "SoundMam"=- >>repair.reg
echo "rose"=- >>repair.reg

echo >>repair.reg

echo "CheckedValue"=- >>repair.reg
echo "CheckedValue"=dword:1 >>repair.reg

echo >>repair.reg
echo "Shell"="Explorer.exe" >>repair.reg

echo >>repair.reg
echo "NoDriveAutoRun"=dword:03FFFFFF >>repair.reg
echo "NoDrivetypeAutoRun"=dword:000000FF >>repair.reg
echo >>repair.reg
echo @=- >>repair.reg
regedit /s repair.reg
del /s /q repair.reg

[ Last edited by kootoo on 2007-1-4 at 02:19 AM ]
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023