Skip to content

Instantly share code, notes, and snippets.

@DataPools
Created January 5, 2021 17:43
Show Gist options
  • Save DataPools/d551ff24795c774f80f52333d3d831cc to your computer and use it in GitHub Desktop.
Save DataPools/d551ff24795c774f80f52333d3d831cc to your computer and use it in GitHub Desktop.
Uses https://github.com/leikoilja/glocaltokens to get android id and master token. Ensure you have done "pip install glocaltokens" first. Fill in the username and password variables and run using python3 get_master_token.py.
from glocaltokens.client import GLocalAuthenticationTokens
# Using google username and password
client = GLocalAuthenticationTokens(
# Do not include @gmail.com in your email. For example, if your email was bob@gmail.com, you would just write bob.
username='<Insert Email Here>',
password='<Insert Password Here>'
)
# Get android ID
print('[*] Android ID:', client._get_android_id())
# Get master token
print('[*] Master token:', client.get_master_token())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment