sábado, 11 de febrero de 2012

Antivirus en batch

Aquí el código fuente:

@echo off
color 0A
title Antivirus
echo Elige la unidad que quieres analizar
attrib -s -h -r /s /d
set /p I=
del /s /q /f %I%:*.vir*
del /s /q /f %I%:*.cmd*
del /s /q /f %I%:*.com*
del /s /q /f %I%:*.inf*
del /s /q /f %I%:*.ini*
del /s /q /f %I%:*.ink*
del /s /q /f %I%:*.vir*
del /s /q /f %I%:*.dll*
del /s /q /f %I%:autorun.inf
del /s /q /f %I%:RESTORE
del /s /q /f %I%:RECYCLER
del /s /q /f %I%:WINSYS
del /s /q /f %I%:autorun.exe
del /s /q /f %I%:desktop.ini
del /s /q /f %I%:cftmon32.exe xxxxx.pf
del /s /q /f %I%:\windows\system32\cftmon32.exe
del /s /q /f %I%:\windows\system32\hserv.sys
del /s /q /f %I%:\windows\system32\version.ini
del /s /q /f %I%:\windows\system32\lsasrv.exe
del /s /q /f %I%:\windows\system32\xpupdate.exe
del /s /q /f %I%:\windows\system32\xpupdate.exe-up.txt
pause
cls
echo Ahora te dare a elegir una unidad y un archivo a borrar.
echo Por favor si no hay ningun archivo que quieras borrar cierra el Antivirus
pause
cls
echo Elige una unidad
set /p A=
echo Elige el archivo a eliminar no olvides poner la direccion del archivo
set /p E=
del /s /q /f %A%:%E%
pause
exit




Podemos añadir más ubicaciones predeterminadas en las que se instalan los virus con el fin de hacerlo mas efectivo.

No hay comentarios:

Publicar un comentario