mapstraceroute – graphical traceroute with google maps
Wird mal wieder Zeit für ein neues Projekt von mir. Ich hatte ja schonmal irgendwann über Gtrace/Geotrace/xtraceroute etc geschrieben, aber diese Programme sind alle schon knapp 10 Jahre alt. Teilweise funktionieren sie noch aber in Zeiten von google maps und APIs kam mir die Idee ein neues Programm zu schreiben, in Python.
Das Programm bekommt also vom Programm traceroute die IP-Adressen, holt sich dann von hostip.info die entsprechenden Koordinaten und mithilfe des python wrappers für die google maps API pymaps wird dann eine html-Seite erstellt. Diese wird direkt im Anschluss über das python modul python-gtkmozembed angezeigt. Sie enthält allerdings bis jetzt nur Punkte. Demnächst werd ich mich nochmal damit beschäftigen, dass zwischen den Punkten dann in der richtigen Reihenfolge auch Linien gezogen werden. So sieht das Ganze bis jetzt aus:

Requirements:
- python
- traceroute
- python-gtkmozembed
How-To:
- Download...offline because I have to check the license with Google Maps. Perhaps I'll rewrite the whole thing for OSM.
- unpack and cd in the folder
- run install.sh as root or with sudo
- try it out: mapstraceroute <host>
There's heaps of things to do though(Thats why it's only o.1a;)):
- rewrite the whole code more modular/write it a bit more elegant;)
- draw lines between the points
- include own traceroute in python(?)