Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mxrch
GitHub Repository: mxrch/GHunt
Path: blob/master/ghunt/helpers/gmail.py
252 views
1
import httpx
2
3
4
async def is_email_registered(as_client: httpx.AsyncClient, email: str) -> bool:
5
"""
6
Abuse the gxlu endpoint to check if any email address
7
is registered on Google. (not only gmail accounts)
8
"""
9
req = await as_client.get(f"https://mail.google.com/mail/gxlu", params={"email": email})
10
return "Set-Cookie" in req.headers
11