B16f00t / whapa

WhatsApp Parser Toolset v1.59
1.11k stars 261 forks source link

How to manually find Google token? #74

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, I'm trying to figure out how to find the Google token (Google Account token) without providing auth (already logged in on the browser).

Which request contains the token? Or is it on the cookies?

B16f00t commented 3 years ago

Whapagodri does not store the token, but uses it in the request within the header.

header = {'Authorization': 'Bearer ' + bearer, 'User-Agent': 'WhatsApp/2.19.244 Android/9.0 Device/Whapa'}
url_data = "https://backup.googleapis.com/v1/clients/wa/backups/{}".format(celnumbr)
request_data = requests.get(url_data, headers=header)
dev-point-team commented 3 years ago

create oauth authorization from google console, it will be like

https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT&response_type=code&scope=https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/drive.file

then you will get a access token for log-in user, pass to script where @B16f00t refer