Created
August 15, 2018 23:23
-
-
Save paulp/63ebb3bf9b0bdf85305377f3ef9f620d to your computer and use it in GitHub Desktop.
Visibility into chrome's internal dns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
output () { | |
pup 'tbody[id="dns-view-cache-tbody"] tr json{}' \ | |
| jq -r '.[].children[] | select(.tag == "td").text' \ | |
| ag --nocolor --literal . | |
} | |
chrome-cli open "chrome://net-internals/#dns" >/dev/null | |
sleep 1 | |
chrome-cli source | output | |
chrome-cli close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment