graceful exit

This commit is contained in:
ThePirateWhoSmellsOfSunflowers 2024-04-16 15:39:04 +02:00
parent 143f52215d
commit 5600028d11
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ def main():
client_secret = 'OTJgUOQcT7lO7GsGZq2G4IlT' client_secret = 'OTJgUOQcT7lO7GsGZq2G4IlT'
refresh_token = options.token refresh_token = options.token
access_token = refreshToken2(client_id, client_secret, refresh_token) access_token = refreshToken2(client_id, client_secret, refresh_token)
if not access_token:
print("[x] Error, the refresh token seems not valid")
sys.exit(1)
print(f'[+] Access_token: {access_token}\n') print(f'[+] Access_token: {access_token}\n')
ubertoken = get_ubertoken(access_token) ubertoken = get_ubertoken(access_token)
print(f'[+] Click on this link to get a websession for this user: {ubertoken}\n') print(f'[+] Click on this link to get a websession for this user: {ubertoken}\n')