An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

btsniffer
======================================

## Introduction
btsniffer is a used rust written torrent sniffer. it sniffs torrents from BitTorrent network.

![Run screenshot](assets/runlog.jpg)

## 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