Skip to content

Instantly share code, notes, and snippets.

@Kagee
Created November 17, 2017 21:34
Show Gist options
  • Save Kagee/0779a7890c5277d7249227e39ad1f909 to your computer and use it in GitHub Desktop.
Save Kagee/0779a7890c5277d7249227e39ad1f909 to your computer and use it in GitHub Desktop.
echo '-c utf-8 NNRI4O-NORID' | nc whois.norid.no 43 > whois2.txt
a_file = open('whois2.txt', encoding='utf-8')
s = a_file.read()
r = re.search('Domains(.*)', s)
r.group(1)
''
r = re.search('Domains(..*)', s)
r.group(1)
'....................: aa.no aar <etc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment