torsniff - a sniffer that sniffs torrents from BitTorrent network
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor lock torrent file Jan 25, 2019
.gitignore remove bin dir Oct 9, 2018
LICENSE node to golang Dec 12, 2017 optimize Jan 24, 2019 update README Jan 24, 2019
blacklist.go optimize Jan 24, 2019 build version Jan 22, 2019
dht.go check length when call announcements.put Jan 27, 2019
meta.go optimize Jan 23, 2019
torsniff.go lock torrent file Jan 25, 2019

torsniff - a sniffer that sniffs torrents from BitTorrent network

English | 简体中文


torsniff is a torrent sniffer, it sniffs torrents that people are using to download movies, music, docs, games and so on from BitTorrent network.

A torrent has valuable information, so you can use torsniff to build your own torrent database(e.g: The Pirate Bay), or to do data mining and analyzing.


Just download latest torsniff from releases directly.


$ ./torsniff -h

  torsniff [flags]

  -a, --addr string        listen on given address (default "")
  -d, --dir string         the directory to store the torrents (default "$HOME/torrents")
  -h, --help               help for torsniff
  -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)
  -v, --verbose            run in verbose mode (default true)

Quick start

Use default flags:



  • A host having a public IP(recommended), or UDP port forwarding/port mapping in private network/NAT
  • Allow UDP traffic get through firewall
  • Your ISP/Hosting Provider allows BitTorrent traffic(torsniff works on