How to create virus in c?


Create simple virus by c programming language.
(Only for study purpose)
  • WAP to shutdown the window operating system.
Answer:
Step 1: Write the following program in TURBO C.
void main (void){
system("shutdown -s");
}
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.

Try it but don't take it in funny purpose.

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. hey, its very gud.............yaaaaaaaaaaaaaa
    i wanna know sumthing from u

    ReplyDelete
  3. thnkssss...............
    n what do u want to know?

    ReplyDelete

Post a Comment