This package implements a traceroute tool faster than traceroute/tracert executable but less accurate for response and without hostname resolution.
This package require :
- python3
- python3 Standard Library
- Scapy
- PythonToolsKit
pip install Tracert
python3 -m Tracert 8.8.8.8
python3 Tracert.pyz dns.google.com
Tracert 8.8.4.4
Tracert --help
Tracert -h
Tracert -6 -t 2 -r 5 -s 64 dns.google.com
from Tracert import tracert
tracert("8.8.8.8")
tracert("dns.google.com", 6, 64, 2, 5)
usage: traceroute.py [-h] [-4 | -6] [--timeout TIMEOUT] [--retry RETRY] [--max-steps MAX_STEPS] destination
Fast tracert tool.
positional arguments:
destination IP or hostname you want to trace.
options:
-h, --help show this help message and exit
-4 Force IPv4.
-6 Force IPv6.
--timeout TIMEOUT, -t TIMEOUT
Timeout for each ping.
--retry RETRY, -r RETRY
Number of retry for each steps.
--max-steps MAX_STEPS, -s MAX_STEPS
Maximum steps to trace.
Licensed under the GPL, version 3.