Skip to content

Instantly share code, notes, and snippets.

@elnappo
Created June 14, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save elnappo/34b5dae235043526b9b3 to your computer and use it in GitHub Desktop.
Save elnappo/34b5dae235043526b9b3 to your computer and use it in GitHub Desktop.
graph traceroutes with scapy
from scapy.all import *
hosts = ["whitehouse.gov", "mit.edu", "heise.de", "google.ru", "telekom.de", "facebook.com", "vodafone.de", "tu-berlin.de", "m-net.de", "067.cz"]
res,unans = traceroute(hosts)
res.graph(target="> traceroute_graph.svg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment