Windows Script Infector (Prank Script).bat

DOS/Batch ronron 38 Views Size: 5.64 KB Posted on: Mar 6, 26 @ 5:39 AM
  1. 1@echo off
  2. 2title Windows Script Infector (Prank Script)
  3. 3setlocal enabledelayedexpansion
  4. 4
  5. 5:begin
  6. 6cls
  7. 7echo Windows Script Infector (Prank Script).
  8. 8echo For Education Only.
  9. 9echo.
  10. 10echo ########### ########### #### ### #### ### #### ####
  11. 11echo ############# ############# ###### ### ###### ### #### ####
  12. 12echo ### ### ### ####### ### ####### ### #### ###
  13. 13echo ############# ### ### ### #### ### ### #### ### ######
  14. 14echo ############ #### ### ### ####### ### ####### ####
  15. 15echo ### #### ############# ### ##### ### ##### ###
  16. 16echo ### #### ########## ### ### ### ### ###
  17. 17echo.
  18. 18echo ######################
  19. 19echo # @RonnyTriAsmara #
  20. 20echo # https://ronron.id/ #
  21. 21echo ######################
  22. 22echo Copyright (c) 2014 Ronny Tri Asmara. All rights reserved.
  23. 23echo.
  24. 24echo %date% %time%
  25. 25echo.
  26. 26echo Infector Menu:
  27. 27echo 1. Infeksi sementara.
  28. 28echo 2. Infeksi permanen. - Run as Administrator
  29. 29echo 3. Bersihkan virus.
  30. 30echo.
  31. 31
  32. 32:menu_input
  33. 33set "command="
  34. 34set /p command=Masukkan nomor pilihan yang diinginkan:
  35. 35if "%command%"=="1" goto sementara
  36. 36if "%command%"=="2" goto permanen
  37. 37if "%command%"=="3" goto cleaner
  38. 38echo Kesalahan! Harap masukkan nomor yang benar.
  39. 39pause
  40. 40goto begin
  41. 41
  42. 42:sementara
  43. 43echo Memeriksa file...
  44. 44timeout /t 2 /nobreak >nul
  45. 45
  46. 46if exist "D:\boot.vbs" (
  47. 47 call :confirm_update "D:\boot.vbs" sementara_update
  48. 48 if errorlevel 1 goto begin
  49. 49) else (
  50. 50 goto sementara_update
  51. 51)
  52. 52
  53. 53:sementara_update
  54. 54echo.
  55. 55echo Memulai proses infeksi sementara...
  56. 56echo.
  57. 57
  58. 58:input_message_sementara
  59. 59set "message="
  60. 60set /p message=Masukkan pesan yang ingin ditampilkan:
  61. 61call :validate_message
  62. 62if errorlevel 1 goto input_message_sementara
  63. 63
  64. 64echo.
  65. 65echo Membuat rangkaian virus...
  66. 66timeout /t 2 /nobreak >nul
  67. 67
  68. 68:: Hapus file lama jika ada (dengan aman)
  69. 69if exist "D:\boot.vbs" (
  70. 70 attrib -s -h "D:\boot.vbs" 2>nul
  71. 71 del /q /f "D:\boot.vbs" 2>nul
  72. 72)
  73. 73
  74. 74:: Sanitasi pesan: ganti tanda kutip ganda dengan dua tanda kutip (untuk VBS)
  75. 75set "safe_message=!message:"=""!"
  76. 76
  77. 77(
  78. 78echo set wshshell = wscript.createobject("wscript.shell"^)
  79. 79echo warning = msgbox("Mulai lakukan aktivasi virus?",vbexclamation+vbokcancel,"Peringatan!"^)
  80. 80echo if warning=vbok then
  81. 81echo msgbox "Virus telah aktif!",vbinformation+vbokonly,"Informasi"
  82. 82echo do
  83. 83echo wscript.sleep 100
  84. 84echo wshshell.sendkeys " !safe_message! "
  85. 85echo loop
  86. 86echo else
  87. 87echo cancel = 1
  88. 88echo msgbox "Aktivasi virus dibatalkan.",vbcritical+vbokonly,"Batal"
  89. 89echo end if
  90. 90) > "D:\boot.vbs"
  91. 91
  92. 92attrib +s +h "D:\boot.vbs"
  93. 93echo.
  94. 94echo Rangkaian virus selesai. Menjalankan virus...
  95. 95start "" "D:\boot.vbs"
  96. 96echo.
  97. 97pause
  98. 98goto begin
  99. 99
  100. 100:permanen
  101. 101:: Cek apakah dijalankan sebagai administrator (sederhana)
  102. 102net session >nul 2>&1
  103. 103if %errorlevel% neq 0 (
  104. 104 echo.
  105. 105 echo Anda perlu menjalankan script ini sebagai administrator untuk opsi ini.
  106. 106 echo Klik kanan dan pilih "Run as administrator".
  107. 107 pause
  108. 108 goto begin
  109. 109)
  110. 110
  111. 111echo Memeriksa file...
  112. 112timeout /t 2 /nobreak >nul
  113. 113
  114. 114set "startup_path=%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\boot.vbs"
  115. 115
  116. 116if exist "!startup_path!" (
  117. 117 call :confirm_update "!startup_path!" permanen_update
  118. 118 if errorlevel 1 goto begin
  119. 119) else (
  120. 120 goto permanen_update
  121. 121)
  122. 122
  123. 123:permanen_update
  124. 124echo.
  125. 125echo Memulai proses infeksi permanen...
  126. 126echo.
  127. 127
  128. 128:input_message_permanen
  129. 129set "message="
  130. 130set /p message=Masukkan pesan yang ingin ditampilkan:
  131. 131call :validate_message
  132. 132if errorlevel 1 goto input_message_permanen
  133. 133
  134. 134echo.
  135. 135echo Membuat rangkaian virus...
  136. 136timeout /t 2 /nobreak >nul
  137. 137
  138. 138:: Hapus file lama jika ada
  139. 139if exist "!startup_path!" (
  140. 140 del /q /f "!startup_path!" 2>nul
  141. 141)
  142. 142
  143. 143:: Sanitasi pesan
  144. 144set "safe_message=!message:"=""!"
  145. 145
  146. 146(
  147. 147echo set wshshell = wscript.createobject("wscript.shell"^)
  148. 148echo do
  149. 149echo wscript.sleep 100
  150. 150echo wshshell.sendkeys " !safe_message! "
  151. 151echo loop
  152. 152) > "!startup_path!"
  153. 153
  154. 154echo.
  155. 155echo Rangkaian virus selesai.
  156. 156echo Virus akan otomatis aktif setelah komputer restart.
  157. 157echo.
  158. 158pause
  159. 159goto begin
  160. 160
  161. 161:cleaner
  162. 162echo Memeriksa komputer...
  163. 163timeout /t 2 /nobreak >nul
  164. 164echo.
  165. 165
  166. 166:: Matikan proses wscript.exe yang mungkin menjalankan virus
  167. 167taskkill /f /im wscript.exe 2>nul
  168. 168
  169. 169set "found=0"
  170. 170if exist "D:\boot.vbs" (
  171. 171 echo Menghapus D:\boot.vbs...
  172. 172 attrib -s -h "D:\boot.vbs" 2>nul
  173. 173 del /q /f "D:\boot.vbs" 2>nul && set found=1
  174. 174)
  175. 175set "startup_path=%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\boot.vbs"
  176. 176if exist "!startup_path!" (
  177. 177 echo Menghapus !startup_path!...
  178. 178 del /q /f "!startup_path!" 2>nul && set found=1
  179. 179)
  180. 180
  181. 181if %found%==0 (
  182. 182 echo Tidak ada virus yang terdeteksi.
  183. 183) else (
  184. 184 echo.
  185. 185 echo Virus telah dibersihkan.
  186. 186)
  187. 187echo.
  188. 188pause
  189. 189goto begin
  190. 190
  191. 191:cancel
  192. 192echo.
  193. 193pause
  194. 194goto begin
  195. 195
  196. 196:confirm_update
  197. 197:: Parameter: %1 = path file, %2 = label tujuan jika update
  198. 198set "ask="
  199. 199set /p ask=Virus sudah terpasang. Apakah anda ingin memperbaharuinya? (y/n):
  200. 200if /i "!ask!"=="y" goto :%2
  201. 201if /i "!ask!"=="n" exit /b 1
  202. 202echo Error! Anda memasukkan perintah yang salah.
  203. 203pause
  204. 204goto confirm_update
  205. 205
  206. 206:validate_message
  207. 207:: Memvalidasi bahwa message hanya berisi huruf, angka, spasi, dan panjang <=50
  208. 208:: Return errorlevel 0 jika valid, 1 jika tidak
  209. 209if not defined message (
  210. 210 echo Pesan tidak boleh kosong.
  211. 211 exit /b 1
  212. 212)
  213. 213:: Cek panjang maksimal 50 karakter
  214. 214if not "!message:~50!"=="" (
  215. 215 echo Pesan terlalu panjang. Maksimal 50 karakter.
  216. 216 exit /b 1
  217. 217)
  218. 218:: Cek karakter ilegal (selain huruf, angka, spasi)
  219. 219echo(!message!| findstr /r "[^a-zA-Z0-9 ]" >nul
  220. 220if not errorlevel 1 (
  221. 221 echo Pesan hanya boleh berisi huruf, angka, dan spasi.
  222. 222 exit /b 1
  223. 223)
  224. 224exit /b 0

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA or Cloudflare Turnstile), and — with your consent — to measure usage and show ads. See Privacy.