复活一个死掉的BT追踪器并找到300万个节点
Resurrecting a dead torrent tracker and finding 3M peers

原始链接: https://kianbradley.com/2025/06/15/resurrecting-a-dead-tracker.html

作者偶然发现qBittorrent中大量失效的Tracker,其中包括open.demonii.si。出于对潜在流量的好奇,作者购买了该域名,并在VPS上使用opentracker搭建了一个简单的种子追踪器。甚至在Tracker启动之前,1337端口就收到了大量流量。一小时后,Tracker处理的流量激增,峰值达到170万个种子和310万个节点。统计数据显示大量的连接活动、announce请求和scrape请求。这表明仍有大量的BT客户端指向这个失效的Tracker。随后,作者思考了托管一个无意中服务合法和版权材料的Tracker的法律风险。意识到潜在的风险,特别是考虑到是用信用卡购买的域名,作者迅速关闭了服务器并释放了域名,建议将其作为公共服务供其他人使用。

一个Hacker News的帖子讨论了复活一个已死的种子追踪器(torrent tracker)的合法性和影响。原文详细描述了作者获得一个以前用作种子追踪器的已失效域名,并观察到数百万个对等节点仍在尝试连接的经历。 评论者们争论运行这样的追踪器是否构成协助侵犯版权,引用了美国法律和“恶意”(mens rea,意图)的重要性。一些人认为“内容中立”的追踪器是合法的,另一些人则强调了无论合法与否,版权持有者提起诉讼的风险。潜在的法律骚扰的寒蝉效应也被讨论到。 该帖子进一步探讨了由于恶意追踪器数据而导致的种子客户端中的潜在安全漏洞。它还涉及到使用复活的追踪器进行DDoS攻击或作为FBI蜜罐的可能性。提到了替代的去中心化追踪方法,例如DHT,以及对种子搜索引擎的潜在影响。最后,谈话涉及到当今的盗版问题,即对用户的风险是否高于对追踪器运营者的风险,以及当如此多的媒体内容可以免费流媒体播放时,种子下载的吸引力是否下降。
相关文章

原文

So I was uh, downloading some linux isos, like usual. It was going slowly, so I opened up the Trackers tab in qBittorrent and saw the following:

List of trackers... most of them unreachable

Most of the trackers were totally dead. Either the hosts were down or the domains weren’t being used.

That got me thinking. What if I picked up one of these dead domains? How many clients would try to connect?

What are trackers for, anyways?

A tracker is a core component of the BitTorrent protocol. Trackers are the services that point you to other peers for the torrent. Without trackers, there would be no one to share the file with.

Obviously this represents a major source of centralization in the torrent protocol. If your trackers aren’t maintained – or if they get forced offline by certain industry organizations – you’re out of luck.

We have an alternative, called Mainline DHT, which performs a more decentralized lookup of peers based on infohash alone. DHT isn’t perfect, though. It relies on bootstrap nodes and is vulnerable to Sybil attacks. And in the example of my poorly-served torrent, DHT wasn’t surfacing any peers, regardless.

Hosting a tracker

Looking through the list of trackers marked “host not found”, I noticed udp://open.demonii.si:1337/announce was available.

I bought the domain through Dynadot (one of the few .si domain registrars), then spun up a quick anonymous VPS. I mapped the domain to the VPS, then set up opentracker, the most widely used and robust torrent tracker software.

Instructions for Ubuntu 24.04:

sudo apt install gcc-14 g++-14 build-essential zlib1g-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 14

Follow the readme to compile, first the dependency libowfat (a GPL reimplementation of some of dan bernstein’s C libraries) and then opentracker itself.

cvs -d :pserver:[email protected]:/cvs -z9 co libowfat
cd libowfat
make
cd ..
git clone git://erdgeist.org/opentracker
cd opentracker
make

Finally, a quick systemd unit file to daemonize this service:

[Unit]
Description=opentracker
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=opentracker
Group=opentracker
WorkingDirectory=/var/lib/opentracker
ExecStart=/home/opentracker/opentracker/opentracker -p 1337 -P 1337 \
          -d /var/lib/opentracker -u opentracker
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

What did I find?

Before even starting opentracker, I saw a flood of traffic against UDP port 1337:

联系我们 contact @ memedata.com