Giter VIP home page Giter VIP logo

traceroute's Introduction

Traceroute

A home brewed implementation of traceroute in python using sockets.

Usage

This project uses google's python-fire for ease of use. Please make sure to install the requirements via pip install -r requirements.txt beforehand.

NOTE: Due to socket being used this has to be run with elevated privileges (e.g sudo).

To use it as cli:

❯❯❯ sudo ./tracert.py traceroute google.com
tracing:    172.217.17.238  | timeout: 1s
192.168.178.1   | ttl: 1    | 1.67 ms
217.0.116.210   | ttl: 2    | 17.04 ms
87.190.177.62   | ttl: 3    | 17.29 ms
194.25.6.238    | ttl: 4    | 18.23 ms
80.157.129.174  | ttl: 5    | 18.7 ms
108.170.227.186 | ttl: 7    | 17.73 ms
172.217.17.238  | ttl: 8    | 17.67 ms
["80.157.129.174", 18.7]

To use it as module:


tracer = Trace()
slowest_hop, rtt = tracer.traceroute("192.168.178.73")

Caveats

  • sudo is required
  • A lot of standard UNIX traceroute functionality is missing

traceroute's People

Contributors

benkoller avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.