akamemoe / btsniffer

A bittorrent sniffer sniffs on the DHT network and do filtering depends on your interested word.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

btsniffer - a sniffer that sniffs torrents from BitTorrent network

Introduction

Refactored from torsniff, thanks for the original project author's efforts.

Enhancement: Also sinffs on the BitTorrent network but only stores torrents that hit your keywords.

Compiling

Please ensure you have golang installed in your system environment

./build.sh

Usage

$ ./btsniffer -h

Usage:
  torsniff [flags]

Flags:
  -k, --kwfile string      the keywords file (default ./keywords.txt;split by line)
  -o, --database string    the output database, all torrents will be saved to that file (default ./torrentdata.db)
  -a, --addr string        listen on given address (default all, ipv4 and ipv6)
  -d, --dir string         the directory to store the torrents (default "$HOME/torrents")
  -f, --friends int        max fiends to make with per second (default 500)
  -e, --peers int          max peers to connect to download torrents (default 400)
  -p, --port uint16        listen on given port (default 6881)
  -t, --timeout duration   max time allowed for downloading torrents (default 10s)
  -h, --help               help for torsniff
  -v, --verbose            run in verbose mode (default true)

Quick start

Use default flags:

./btsniffer

Protocols References

License

MIT

About

A bittorrent sniffer sniffs on the DHT network and do filtering depends on your interested word.

License:MIT License


Languages

Language:Go 99.7%Language:Shell 0.3%