hping3 --traceroute -V -1 www.example.com # performs traceroute # -1, using ICMP # -V, it will be verbose
Note: if hping gets stuck on any given hop simple press ctrl-z in order to skip unresponsive hop.
We can perform an UDP traceroute by doing:
hping3 -2 220.127.116.11 -p ++44444 -T -n
We can also check how a route changes at different hops, for example let's say we want to check what are the different paths taken at hop 15, we can do:
hping3 -S 18.104.22.168 -p 80 -T --ttl 15 --tr-keep-ttl -n