tracebt is a tool that reconstructs BitTorrent peer protocol streams (TCP
and uTP) from a packet capture, parse the protocol and prints it to human
readable form to files on disk. The packet capture is expected to be a libpcap
compatible file, either
.pcapng, suitable captured with
wireshark or tcpdump.
For the reconstruction to work reliably, the full packets need to be included in the capture, not just packet headers. This is because at the bittorrent protocol level, messages are not aligned to packets, and may end up at the end of a full MTU segment.
Files are saved to current working directory, in a subdirectory called
Each TCP or uTP connection is dumped to a file in that directory.
uTP stream analysis
analyze_utp is a tool to analyze uTP packet captures. It can filter based on
connection ID and indicate incoming and outgoing packet direction based on IPs.
It prints uTP packet headers and IP packet fragments. It was developed to enable
analysis of MTU probes.
Bittorrent trace depends on
libpcap and boost.system.
Building is most conveniently done with
In the root directory.