Skip to content

Instantly share code, notes, and snippets.

@cvasqxz
Created December 19, 2019 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvasqxz/154e656a62da9989924d3ef4891811a8 to your computer and use it in GitHub Desktop.
Save cvasqxz/154e656a62da9989924d3ef4891811a8 to your computer and use it in GitHub Desktop.
Nic.cl domain WHOIS scanner
import unidecode
import os
for j in range(1000):
word = str(j)
a = os.popen('whois %s.cl' % word).read()
if 'no entries found' in a:
print('%s.cl\t\t-\t\tdisponible' % word)
else:
b = a.split('\n')
print('%s.cl\t\t-\t\t%s' % (word, b[13].split(': ')[-1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment