Results 1 to 2 of 2
  1. #1
    zywztzbbrruxifwifi's Avatar
    Join Date
    Sep 2020
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Need help finding out why my program isnt doing what i want it to do

    I'm trying to create a program that only works on 1 persons pc per login via grabbing the users machine guid and comparing it to one I've already set as the only "allowed" guid.

    I currently have my own in there for testing purposes, but no matter how I try to write this, it always allows me to log in and continue through the rest of the program without closing when I change the digits of my mguid.

    Does anyone know why it's not closing when it finds that the users (my) hwid isn't the same as the authed hwid given in "std::string frenchhwid"?

    HW_PROFILE_INFO hwProfileInfo;
    GetCurrentHwProfile(&hwProfileInfo);
    wstring hwidString = hwProfileInfo.szHwProfileGuid;
    string hwid(hwidString.begin(), hwidString.end());


    std::string user;
    std::string pass;
    std::string hwids;
    std::string frenchpass = "lol";
    std::string frenchhwid = "dd07cef3-4ef5-4141-a8fb-5115def1f6e2";
    std::vector<std::string> usernames{ "french" };


    if (frenchhwid.compare(hwid) == 0);
    if (frenchhwid != (hwid))
    system("exit");
    print("username: ");
    std::getline(std::cin, user);
    if (in_array(user, usernames)) {
    system("cls"); //sorry non-windows users
    if (user == "french") {
    print("password: ");
    std::getline(std::cin, pass);
    if (pass == frenchpass)

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,986
    Reputation
    353
    Thanks
    8,765
    My Mood
    Twisted
    Mostly because
    Code:
    std::system("exit");
    won't exit the program... Try it with an actual exit function, like this, or just return from your main.

Similar Threads

  1. [Help Request] Need help finding a pointer using cheat engine
    By h4344 in forum C++/C Programming
    Replies: 2
    Last Post: 08-16-2012, 08:38 PM
  2. [Help Request] Need help picking out new PC parts.
    By aonix in forum Hardware & Software Support
    Replies: 17
    Last Post: 02-25-2012, 07:10 PM
  3. [Help Request] Need help figuring out HFS edit
    By cyTOist in forum Vindictus Help
    Replies: 10
    Last Post: 05-17-2011, 09:03 PM
  4. [Help Request] Need help finding a Vindictus injector
    By VpChris in forum Vindictus Help
    Replies: 2
    Last Post: 05-01-2011, 11:51 PM
  5. i need help finding a program for this... read
    By xtgx46x211x in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 06-20-2010, 08:19 PM