category 04 / 10
Networking
Ports, DNS, HTTP requests, and waiting for services.
004
entries
4 min
avg read
039Check if a remote port is open when netcat is not installedtimeout 3 bash -c '</dev/tcp/bash-hacks.com/443' && echo open || echo closed026See when a TLS certificate expires without opening a browseropenssl s_client -connect bash-hacks.com:443 -servername bash-hacks.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates017Find out which part of an HTTP request is actually slowcurl -sS -o /dev/null -w "dns %{time_namelookup}\ntcp %{time_connect}\ntls %{time_appconnect}\nttfb %{time_starttransfer}\ntotal %{time_total}\n" https://www.debian.org008Check where a domain name actually pointsdig +short example.com
showing 004 of 004