sxs.exe的查杀bat代码
程序员文章站
2022-04-10 18:50:17
复制代码 代码如下: ::echo 特征:在每个盘根目录下自动生成sxs.exe,autorun.inf文件,有的还在windows\system32下生成svohost....
复制代码 代码如下:
::echo 特征:在每个盘根目录下自动生成sxs.exe,autorun.inf文件,有的还在windows\system32下生成svohost.exe 或 sxs.exe ,文件属性为隐含属性。自动禁用杀毒软件
::解决方法:建立批处理文件 (内容)
@echo off
taskkill /f /im sxs.exe /t
taskkill /f /im svohost.exe /t
c:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
d:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
e:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
f:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
g:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
h:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
i:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
j:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
k:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
l:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
m:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
n:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
reg delete hklm\software\microsoft\windows\currentversion\explorer\advanced\folder\hidden\showall /v checkedvalue /f
reg add hklm\software\microsoft\windows\currentversion\explorer\advanced\folder\hidden\showall /v "checkedvalue" /t "reg_dword" /d "1" /f
reg delete hklm\software\microsoft\windows\currentversion\run /v sxs.exe /f
reg delete hklm\software\microsoft\windows\currentversion\run /v svohost.exe /f
exit
上一篇: cmd批处理常用符号详解