mirror of
https://github.com/mxrch/GHunt.git
synced 2026-10-24 01:29:24 +08:00
10 lines
364 B
Python
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 |