A request based Python tool to check if XGPC (Xbox Gamepass invite-friend Trial codes) is valid, or not.
Download the script, install the requirements. (pip install requests colorama)
On this part of the code, remove the dummy text and replace it with your auth headers
Put your codes in "codes.txt" at same folder, one code each line, and run by "python main.py".
After done, it will save the valid codes in valid_codes.txt
You don't need to do this every time. Only when your XBL authorization token expires.
Login to XBOX with a testing / dummy microsoft account.
Go to https://www.xbox.com/en-US/xbox-game-pass/invite-your-friends/redeem?offerId=ccccccccc
Find this GET request on your Networks tab
Right click it and Copy as fetch
Paste it to a notepad. In the pasted text, there should be your headers
Copy your headers from User-Agent to Priority
and directly paste it into the headers part of your code
Yes you can, but i'm too lazy to add the code that does mail:pass > xbl token
I dont know all of the responses, so some codes show as "Invalid" while they're "Used", but it shouldn't be a problem
If you want to, you can use the Threaded_Checker.py version (which all of the threading system written by copilot but it works.
do NOT use anything over 40
Proxy, no. API is basically limitless. Why would you need proxy?