Results 1 to 7 of 7
  1. #1
    vidsac's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    5
    My Mood
    Stressed

    One line of code stops from compiling with admin priv?

    Been trying to make a basic cheat, but every time I add one this one line of code, I can't do any OpenProcess/elevation requiring functions!


    I encourage you to try this code yourself, all my friends get the same issue. Please tell me I'm being dumb and just have a typo


    Code:
    bool good_coder() {
    	DWORD ELEPHANT = sizeof(TOKEN_ELEVATION); HANDLE CHEEZE = NULL;
    	TOKEN_ELEVATION PIZZA;
    	if (OpenProcessToken(GetConsoleWindow(), PROCESS_ALL_ACCESS, &CHEEZE)) {
    		if (GetTokenInformation(CHEEZE, TokenElevation, &PIZZA, sizeof(TOKEN_ELEVATION), &ELEPHANT)) {
    			return PIZZA.TokenIsElevated;
    		}
    	}
    }
    
    
    int main() {
    	if (!good_coder()) {
    		cout << "NOT ADMIN! :(";
    	}
    	else { cout << "YES! :D"; }
    	HWND walrus = NULL;
    	LPCSTR GAMENAMEHERE = "U CANT STEAL MY PASTE";
    	while (walrus == NULL) {
    		walrus = FindWindowA(NULL, GAMENAMEHERE);
    		Sleep(100);
    	}
    
    
    	LPDWORD AMIDUMB = NULL;
    	GetWindowThreadProcessId(walrus, AMIDUMB); // try &AMIDUMB and change it do DWORD, same result
    // PRETEND REST OF CHEAT IS HERE
    }

    also sorry for stupid names, ive tried to make this project like 10 times. i need something to keep me entertained

  2. #2
    An0m4ly_15's Avatar
    Join Date
    Jul 2016
    Gender
    male
    Location
    ¯\_(ツ)_/¯
    Posts
    1,374
    Reputation
    47
    Thanks
    9,397
    My Mood
    Relaxed
    Quote Originally Posted by vidsac View Post
    Been trying to make a basic cheat, but every time I add one this one line of code, I can't do any OpenProcess/elevation requiring functions!


    I encourage you to try this code yourself, all my friends get the same issue. Please tell me I'm being dumb and just have a typo


    Code:
    bool good_coder() {
    	DWORD ELEPHANT = sizeof(TOKEN_ELEVATION); HANDLE CHEEZE = NULL;
    	TOKEN_ELEVATION PIZZA;
    	if (OpenProcessToken(GetConsoleWindow(), PROCESS_ALL_ACCESS, &CHEEZE)) {
    		if (GetTokenInformation(CHEEZE, TokenElevation, &PIZZA, sizeof(TOKEN_ELEVATION), &ELEPHANT)) {
    			return PIZZA.TokenIsElevated;
    		}
    	}
    }
    
    
    int main() {
    	if (!good_coder()) {
    		cout << "NOT ADMIN! :(";
    	}
    	else { cout << "YES! :D"; }
    	HWND walrus = NULL;
    	LPCSTR GAMENAMEHERE = "U CANT STEAL MY PASTE";
    	while (walrus == NULL) {
    		walrus = FindWindowA(NULL, GAMENAMEHERE);
    		Sleep(100);
    	}
    
    
    	LPDWORD AMIDUMB = NULL;
    	GetWindowThreadProcessId(walrus, AMIDUMB); // try &AMIDUMB and change it do DWORD, same result
    // PRETEND REST OF CHEAT IS HERE
    }

    also sorry for stupid names, ive tried to make this project like 10 times. i need something to keep me entertained
    Did you writete this code or did you paste it?

  3. #3
    jonluke's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Location
    New Zealand
    Posts
    207
    Reputation
    10
    Thanks
    483
    My Mood
    Bitchy
    haha,
    Is this bait or are you retarded?

  4. #4
    Anime's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    988
    Reputation
    42
    Thanks
    170
    Quote Originally Posted by jonluke View Post
    haha,
    Is this bait or are you retarded?
    What do you mean?

  5. #5
    jonluke's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Location
    New Zealand
    Posts
    207
    Reputation
    10
    Thanks
    483
    My Mood
    Bitchy
    It looks like OP is retarded and tried pasting stuff :|

    - - - Updated - - -

    Legit hacking with exspensive inventory xDDDDD
    https://steamcommunity.com/id/FuckOff...s/#scrollTop=0

  6. #6
    vidsac's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    5
    My Mood
    Stressed
    Quote Originally Posted by An0m4ly_15 View Post
    Did you writete this code or did you paste it?
    wrote it.
    btw i figured out the issue: just reading with the wrong access type

  7. #7
    PhY'z's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    518
    Reputation
    58
    Thanks
    1,310
    My Mood
    Angelic
    Quote Originally Posted by jonluke View Post
    It looks like OP is retarded and tried pasting stuff :|

    - - - Updated - - -

    Legit hacking with exspensive inventory xDDDDD
    https://steamcommunity.com/id/FuckOff...s/#scrollTop=0
    Hope you are kidding, cuz now you got more autistic than those variables. That skin doesn't even exist.
    Contact with me in any question...


    Hi (:

  8. The Following User Says Thank You to PhY'z For This Useful Post:

    vidsac (09-15-2017)

Similar Threads

  1. One line of code stops from compiling as admin?
    By vidsac in forum C++/C Programming
    Replies: 1
    Last Post: 09-01-2017, 11:24 PM
  2. [WTS] XBOX ONE FIFA 17 CODE WITH LEGENDS CHEAP
    By MyNameIsCheffff69 in forum Selling Accounts/Keys/Items
    Replies: 0
    Last Post: 12-29-2016, 04:14 PM
  3. [Source Code] C++ Trigger Blue Screen Of Death (With just few lines of code!)
    By nullptr_t in forum C++/C Programming
    Replies: 0
    Last Post: 04-01-2016, 04:07 PM
  4. Sleek User Interface - One line of code
    By NextGen1 in forum Visual Basic Programming
    Replies: 50
    Last Post: 02-02-2010, 06:04 PM
  5. Superjump and Superman Codes??Somebody help me with these codes??
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 06-10-2007, 02:37 PM