slothsoffun
3/28/2018 - 5:32 PM

Network Tools

nmap, netstat, nc, nlookup, dns, host, hostname, ...

# Get Public IP
curl ipinfo.io/ip
# -or-
wget -qO- ipinfo.io/ip

# Get Interface IP
IF="ipsec0"
IP="$(ifconfig $IF | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}')"

# Check if remote port is open
nc -zv 127.0.0.1 80

hostname - hostname of host
uptime - uptime of the host
ifconfig - information about network interfaces
ping - icmp connectivity check
traceroute - traceroute path to a server
netstat - info about ongoing connections and interfaces
nslookup - DNS queries (also reverse)
dig kolhagen.net any - advanced DNS queries (a, aaaa, caa, cname, mx, ns, ptr, soa, srv, txt)
# https://toolbox.googleapps.com/apps/dig
whois - get whois DNS data
tcpdump - 
nmap - port scans
nc - netcat read/write to TCP/UDP streams