Skip to content

Instantly share code, notes, and snippets.

@mwatts272
Last active December 20, 2015 20:49
Show Gist options
  • Save mwatts272/6192900 to your computer and use it in GitHub Desktop.
Save mwatts272/6192900 to your computer and use it in GitHub Desktop.
A sharp trace-route tool built with scapy for testing the routes of multiple domains.
#! /usr/bin/env python
# Set log level to benefit from Scapy warnings
import logging
logging.getLogger("scapy").setLevel(1)
from scapy.all import *
if __name__ == "__main__":
hosts = raw_input('Hostnames you would like to traceroute sepearated by a comma: ')
ttl = raw_input("Time To Live: ")
if not ttl: ttl = 20
traceroute([x.strip() for x in hosts.split(',')],maxttl=ttl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment