批处理病毒杀手v1.0.0

自己写的,不是很好

%%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a  
cls 
@echo off

:: COPYRIGHT (C) 20XX Robert L. Ryan. SOME RIGHTS RESERVED.
:: Licensed under the MIT License(MIT)

set r=%~d0
title USBDrive Virus Killer BY Robert L. Ryan (aka RYSF13)
mode con: cols=80 lines=25
:: I have a habit of seldom adding comments when I write, so just so you know, this code isn't something I used Ctrl-C and Ctrl-V.
dir %r% /s
cls
echo.
echo This program is applicable for removing the USB virus with the signature "MICROSOFT_WORD.WSF";
echo It can also be used for the removal of other USB viruses.
echo Version v1.0.0(25w08a)
echo email to 1085908428@qq.com for help.
echo.
echo [ATTENTION] Better run this program from the ROOT DIRECTORY of the USB drive. To prevent removing fail, please off all the anti-virus softwares.
echo.
echo Press any key to start killing viruses
pause>nul

cls
echo.
echo Now killing viruses..
:: MSWORD.WsF
if exist "C:\Users\Administrator\AppData\Roaming\Microsoft Office\Microsoft Word.WsF" (
echo.
taskkill /f /t /im wscript.exe >nul 2>nul
del /f /s /q "C:\Users\Administrator\AppData\Roaming\Microsoft Office\ " >nul 2>nul
del /f /s /q "%r%\Microsoft Word.WsF" >nul 2>nul
attrib -r -a -s -h %r%\*.* /s /d >nul 2>nul
del %r%\*.lnk /f /s /q >nul 2>nul
echo.
)
:: autorun virus
del /f /s /q %r%\*.inf
del /f /s /q %r%\*.ini
:: create autorun.inf
md %r%\autorun.inf
attrib autorun.inf +a +s +h +r
:: autoit
taskkill /im AutoIt3.exe /t /f
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v AntiUsbWorm /f
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v AntiWormUpdate /f
if exist %r%\Google (
attrib -a -s -h -r %r%\Google
del /f /s /q %r%\Google
rd %r%\Google
)
if exist %r%\Skypee (
attrib -a -s -h -r %r%\Skypee
del /f /s /q %r%\Skypee
rd %r%\Skypee
)
for /f "tokens=*" %%i in ('dir %r% /ad /b *') do del /f /s /q  "%%i\%%i.lnk"
del /f /q %r%\*.lnk
for /f "tokens=*" %%a in ('dir %r%\ /ad /b') do attrib -a -s -h -r "%%a"&del /f /q  "%%a.exe"
echo.
call :color "Virus removing success." 0a
choice /M "Do you want to check disk?"
if %errorlevel%=1 chkdsk %pf%: /F
if %errorlevel%=2 continue

echo Thanks for your using!
echo Press any key to exit.
pause>nul
exit

:color 
set /p= <nul>%1 
set /p= <nul>%1 
findstr /a:%2 .* %1* 
del %1
exit /b
posted @ 2025-02-11 13:00  RYSF13  阅读(38)  评论(0)    收藏  举报
__EOF__