https://github.com/cppcoffee/btsniffer
A BitTorrent network sniffer.
https://github.com/cppcoffee/btsniffer
Last synced: 8 months ago
JSON representation
A BitTorrent network sniffer.
- Host: GitHub
- URL: https://github.com/cppcoffee/btsniffer
- Owner: cppcoffee
- Created: 2020-08-02T06:30:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T14:20:11.000Z (about 3 years ago)
- Last Synced: 2025-06-01T00:02:44.177Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 800 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
btsniffer
======================================
## Introduction
btsniffer is a used rust written torrent sniffer. it sniffs torrents from BitTorrent network.

## Usage
```
$ ./btsniffer -h
btsniffer 0.1.0
USAGE:
btsniffer [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a, --addr listen on given address (default all, ipv4 and ipv6) [default: 0.0.0.0]
-b, --blacklist max blacklist size for downloading torrents [default: 5000]
-d, --dir the directory to store the torrents [default: ./torrents/]
-f, --friends max fiends to make with per second [default: 500]
-e, --peers max peers to connect to download torrents [default: 500]
-p, --port listen on given port [default: 6881]
-t, --timeout max time allowed for downloading torrents [default: 15]
```
## Quick start
Use default flags:
`./btsniffer`
## Protocols
* The BitTorrent Protocol Specification *
http://www.bittorrent.org/beps/bep_0003.html
* DHT Protocol *
http://www.bittorrent.org/beps/bep_0005.html
* Extension for Peers to Send Metadata Files *
http://www.bittorrent.org/beps/bep_0009.html
* Extension Protocol *
http://www.bittorrent.org/beps/bep_0010.html