Results 1 to 3 of 3
  1. #1
    zywztzbbrruxifwifi's Avatar
    Join Date
    Sep 2020
    Gender
    male
    Posts
    1
    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,993
    Reputation
    374
    Thanks
    8,808
    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.

  3. #3
    0Heineken0's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    10
    Quote Originally Posted by Biesi View Post
    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.
    It should still terminate even if you don't terminate from main. Interesting behavior.

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, 07: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, 06:10 PM
  3. [Help Request] Need help figuring out HFS edit
    By cyTOist in forum Vindictus Help
    Replies: 10
    Last Post: 05-17-2011, 08:03 PM
  4. [Help Request] Need help finding a Vindictus injector
    By VpChris in forum Vindictus Help
    Replies: 2
    Last Post: 05-01-2011, 10: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, 07:19 PM