btsniffer

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 18 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL