Categories

Create a simple virus using C language.

Aug

7

2010

Now I will tell you how to create a simple virus using C language which will restart your system.
For this you need to launch TC. Now select the option of new file, in that just write the following code.

system(“C:\\windows\\system32\\shutdown.exe -r”);

Here system is a function. The path included is of shutdown.exe which helps for shutting down or restarting the computer. -r is command given for restarting the computer.
Now after compiling the program , just launch the exe file of the same program.
(Note : You have to include the header files such as stdio.h and conio.h)

In: Operating Systems Asked By: [417 Blue Star Level]
Answer #1


Ohhh thats coolll and simple.I will try in my college Computer Lab..hahahha..:-)

GD Star Rating
loading...
Answers Answered By: praveenatxamres [158 Blue Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Star Points Scale

Earn points for Asking and Answering Questions!

Grey Sta Levelr [1 - 25 Grey Star Level]
Green Star Level [26 - 50 Green Star Level]
Blue Star Level [51 - 500 Blue Star Level]
Orange Star Level [501 - 5000 Orange Star Level]
Red Star Level [5001 - 25000 Red Star Level]
Black Star Level [25001+ Black Star Level]