Python Forum

Full Version: How to get every IP found by a Scapy traceroute?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, is it possible to get every IP found by a Scapy traceroute on a route?

My Python code:

from scapy.all import IP,ICMP, traceroute

icmp = ICMP()
dst = '8.8.8.8'

traceroute(target=dst, l4=icmp)
Generated this output:

Output:
1 192.168.100.1 11 2 99.96.0.1 11 3 132.16.4.53 11 4 164.13.0.57 11 5 167.19.221.212 11 6 70.122.243.65 11
Is it possible to get these IPs on some kind of data in Scapy?