dotar/zsh/network-tools.zsh

8 lines
186 B
Bash
Raw Permalink Normal View History

alias intercept-request-hosts="sudo tcpdump -i any -A -vv -s 0 | grep -e 'Host:'"
host-ip() {
ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $7}'
}
test-port() {
2022-04-30 11:30:15 +08:00
nc -z localhost $1
}