Skip to content

Instantly share code, notes, and snippets.

Avatar

J.C. Jones jcjones

View GitHub Profile
View python-traceroute.py
#!/usr/bin/python
import socket
import struct
import sys
# We want unbuffered stdout so we can provide live feedback for
# each TTL. You could also use the "-u" flag to Python.
class flushfile(file):
def __init__(self, f):