Skip to content

Instantly share code, notes, and snippets.

@traverseda
Created May 31, 2021 18:40
Show Gist options
  • Save traverseda/98392bf5284f8200b3a80c6083b2e555 to your computer and use it in GitHub Desktop.
Save traverseda/98392bf5284f8200b3a80c6083b2e555 to your computer and use it in GitHub Desktop.
import whois
import string
import time
from itertools import combinations_with_replacement
from tqdm import tqdm
domains = list(combinations_with_replacement(string.ascii_lowercase+string.digits,3))
domains.reverse()
pbar = tqdm(domains)
for i in pbar:
time.sleep(1)
i="".join(i)
pbar.set_description(i)
if not whois.query(f"{i}.ca"):
tqdm.write(f"{i}.ca")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment