Created
February 21, 2024 01:35
-
-
Save banhbaochi3n/86dafa1517088012da5f5bac4ad60470 to your computer and use it in GitHub Desktop.
Check for existing email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import httpx | |
import trio | |
from ghunt.helpers.gmail import is_email_registered | |
def gen_email(): | |
email_list = [] | |
for dd in range(1, 32): | |
for mm in range(1, 13): | |
email = f"iloveyou.{dd:02d}{mm:02d}[email protected]" | |
email_list.append(email) | |
return email_list | |
async def main(): | |
as_client = httpx.AsyncClient() | |
email = gen_email() | |
for e in email: | |
is_registered = await is_email_registered(as_client, e) | |
if is_registered: | |
print("Email found: ", e) | |
trio.run(main) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment