Files
GHunt/ghunt/helpers/gmail.py
T
2022-12-03 20:50:37 +01:00

10 lines
364 B
Python

import httpx
async def is_email_registered(as_client: httpx.AsyncClient, email: str) -> bool:
"""
Abuse the gxlu endpoint to check if any email address
is registered on Google. (not only gmail accounts)
"""
req = await as_client.get(f"https://mail.google.com/mail/gxlu", params={"email": email})
return "Set-Cookie" in req.headers