This is the smallest batch virus only of 5 letters in length

%0|%0

save this as bat file n run it

you cannot successfully exit this program….

Explanation

%0 gives the location of bat file which is running it including the filename
this program will create two instance of itself and each instance will again creates another two and it continues recursively. This is equivalent (not exactly) to executing a piece of code in an infinite loop( while(1){ //code } )

the operator ‘|’ is called as the redirection operator(pipe operator)..this pipe operator sends one programs output to another programs input

%0 gives the fullpath to the batchfile in which it is coded. i.e. if you have saved the above code as abc.bat in C:\ drive.. then %0 will give the output as ‘C:\abc.bat

Random Posts