/xbox-trial-code-checker

A request based Python tool to check if XGPC (Xbox Gamepass invite-friend Trial codes) is valid, or not.

Primary LanguagePython

xbox-trial-code-checker

A request based Python tool to check if XGPC (Xbox Gamepass invite-friend Trial codes) is valid, or not.

How to use?

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

image

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

How to get your headers

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

image

Right click it and Copy as fetch

image

Paste it to a notepad. In the pasted text, there should be your headers

Copy your headers from User-Agent to Priority

image

and directly paste it into the headers part of your code

image

Why? Can't you put a email pass or something

Yes you can, but i'm too lazy to add the code that does mail:pass > xbl token

Bugs?

I dont know all of the responses, so some codes show as "Invalid" while they're "Used", but it shouldn't be a problem

Threading? Proxy?

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?