Python Script for Colorizing Traceroute Output (apologies for top-post)

Roy Smith roy at panix.com
Sat Nov 17 13:38:53 EST 2012


In article <mailman.3774.1353175657.27098.python-list at python.org>,
 wrw at mac.com wrote:

> On Nov 17, 2012, at 10:04 AM, Jordan Bylsma <jordan.bylsma1 at gmail.com> wrote:
> 
> > I'm looking into writing a python script that colorizes particular hops 
> > when using traceroute. Anyone run across something like this? I don't think 
> > it would be extremely difficult to write but some example code would help.
> > 
> > Basically particular hops in traceroute output would match a table as 
> > either a router, firewall or layer 3 switch and be colorized accordingly. 
> > -- 
> > http://mail.python.org/mailman/listinfo/python-list
> 
> Don't forget that most firewalls don't decrement) the time-to-live number, 
> and unless you REALLY know what to look for, are invisible.

Interesting.  If the firewall doesn't decrement TTL (a particular nasty 
thing to do, and thus completely expected of a firewall) what REALLY 
knowledge would enable you to detect its presence in a traceroute 
printout at all?



More information about the Python-list mailing list