Information Gathering
traceroute tracks the route packets take across an IP network on their way to a given host. It utilizes the IP protocol 'time to live' (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response.
sudo apt install traceroute
traceroute <target>
Traceroute is a network diagnostic tool that traces the path packets take from your system to a destination. It identifies each router (hop) along the path and measures the latency at each point.
The tool works by sending packets with incrementing TTL (Time To Live) values. Each router decrements the TTL and sends back a time-exceeded message when TTL reaches zero, revealing the hop's IP address and response time.
Traceroute is essential for diagnosing network issues, identifying routing problems, understanding network topology, and troubleshooting connectivity issues between source and destination.
traceroute example.comStandard route trace - Map network transit routers connecting local host systems to destination networkstraceroute -T example.comTCP traceroutetraceroute -n example.comNo DNS resolutiontraceroute -p 443 example.comSpecific porttraceroute -I example.comICMP echo requeststraceroute -T example.comTCP SYN traceroutetraceroute -n example.comNo DNS resolutiontraceroute -p 443 example.comTrace to HTTPS porttraceroute -m 30 example.comMaximum 30 hopstraceroute -q 1 example.com1 probe per hoptraceroute -w 3 example.com3-second wait timetraceroute -f 5 example.comStart from TTL 5traceroute -i wlan0 example.comSpecific interfacetraceroute -s 192.168.1.100 example.comSpecific source IPtraceroute -T -p 80 example.comTCP trace to HTTPMap the routers between your system and the destination.
Identify where network latency occurs in the path.
Diagnose routing loops, black holes, and asymmetric paths.
Understand network infrastructure through hop analysis.
Identify where packets are being dropped or blocked.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.