Skip to content

Instantly share code, notes, and snippets.

@anvius
Created May 4, 2018 08:31
Show Gist options
  • Save anvius/fbae4df03517ed81478d645fc170c184 to your computer and use it in GitHub Desktop.
Save anvius/fbae4df03517ed81478d645fc170c184 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
reg=`echo $1 | nc whois.verisign-grs.com 43 | grep "Registrar WHOIS" | awk '{print $4}' | sed -e 's/.$//'`
emails=$(echo "$1" | nc $reg 43 | grep "@" | awk '{print $NF}')
list=$1
for i in $emails
do
list=$list,$i
done
echo $list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment