URI: 
       tscan_domains.py - scripts - random scripts
  HTML git clone https://git.parazyd.org/scripts
   DIR Log
   DIR Files
   DIR Refs
       ---
       tscan_domains.py (561B)
       ---
            1 #!/usr/bin/env python2
            2 # Search for domain names to find cool ones.
            3 import os, sys
            4 
            5 site_exists = lambda site: \
            6     os.system("whois %s.com | grep \"No match\" > /dev/null"%site) != 0
            7 
            8 alphabet = map(chr, range(ord('a'), ord('z') + 1))
            9 
           10 for i in alphabet:
           11     for j in alphabet:
           12         for k in alphabet:
           13             site_name = i + j + k
           14             print 'Trying', site_name
           15             if not site_exists(site_name):
           16                 print '#################'
           17                 print 'Winner!', site_name
           18                 print '#################'
           19 sys.exit(0)