Skip to content

Instantly share code, notes, and snippets.

@lusis
Created December 23, 2015 18:51
Show Gist options
  • Save lusis/baa82ac4f5e91ee7a3b7 to your computer and use it in GitHub Desktop.
Save lusis/baa82ac4f5e91ee7a3b7 to your computer and use it in GitHub Desktop.
who cares if our keyservers are actually keyservers.
» for i in `host keys.gnupg.net | grep "has address" | awk -F" " '{ print $4 }'`; do printf -- "ip: $i is match? "; curl -L -q -s -H "Host: pool.sks-keyservers.net" http://$i | html2text | grep -q -i openpgp; if [[ $? -eq 0 ]]; then echo "yes"; else echo "no"; fi; done
ip: 204.61.209.238 is match? no
ip: 46.229.47.139 is match? yes
ip: 66.109.111.12 is match? yes
ip: 67.205.56.66 is match? no
ip: 68.187.0.77 is match? yes
ip: 78.157.209.9 is match? yes
ip: 84.200.66.125 is match? yes
ip: 91.189.90.55 is match? yes
ip: 93.94.119.246 is match? no
ip: 144.76.26.250 is match? no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment