Skip to content

Instantly share code, notes, and snippets.

@alicommit-malp
Created February 11, 2019 13:31
Show Gist options
  • Save alicommit-malp/f6f55f7b671b4ad86b2395e3e1b32531 to your computer and use it in GitHub Desktop.
Save alicommit-malp/f6f55f7b671b4ad86b2395e3e1b32531 to your computer and use it in GitHub Desktop.
DNS leak test script
#!/bin/sh │info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
dns1=$(nslookup -q=A whoami.akamai.net | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │ Request finished in 0.458ms 200 text/css
dns2=$(nslookup -q=A resolver.dnscrypt.org | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
dns3=$(nslookup -q=A whoami.ultradns.net | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │ Sending file. Request path: '/css/alertify.css'. Physical path:
curl http://ipinfo.io/$dns1/country │ '/home/king/RiderProjects/KoPlatform.VoiceApi.WebRtc/wwwroot/css/ale
curl http://ipinfo.io/$dns2/country │rtify.css'
curl http://ipinfo.io/$dns3/country
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment