Write a C program to inject virus to restart PC

By | October 9, 2016

C program to inject virus  to restart PC


Write a C program to inject virus to restart PC . C Program to restart your computer: Here’s a Simple C program to inject virus to restart PC in C Programming Language.

In this post, I will show you how to create a virus to restart pc at every startup. That is, upon infection, the computer will get restarted every time the system is booted. As a result, the computer will become inoperable as it reboots again as soon as the desktop is loaded.

For this, the virus needs to be executed only once and from then on, it will carry out rest of the operation on its own. I have programmed this virus using the C language. If you are familiar with the C language then it is too easy to understand the logic behind the coding.


Below is the source code for C program to inject virus to restart the computer which is successfully compiled and run on Windows System to produce desired output as shown below :


SOURCE CODE : :


Leave a Reply

Your email address will not be published. Required fields are marked *