bittorrent - 使用 netcat ping router.utorrent.com DHT 节点

标签 bittorrent netcat dht utorrent

我只是想得到 router.utorrent.com 的回复有可能使 DHT 服务走上正轨。例如,给定一个磁力链接:

xt=urn:btih:a78c852bcc0379e612e1bd794e1fd19061b84d11

哈希是:
a78c852bcc0379e612e1bd794e1fd19061b84d11

然后在终端中我输入了这个:
nc -u router.utorrent.com 6881


d1:ad2:id20:a78c852bcc0379e612e1bd794e1fd19061b84d11e1:q4:ping1:t1:01:y1:qe

基于 this文档,但我没有得到任何回应。我什至尝试使用 Wireshark 检查是否有任何数据包返回,但仍然没有。
为什么 μTorrent 不跟我说话?

最佳答案

散列应该是二进制的。在编码中,数字 + 冒号是字符串的长度前缀。一个十六进制的 sha1 是 40 字节长,因为它实际上是 20 字节长,它需要是散列函数的原始输出。

您基本上需要将十六进制字符串转换为二进制(40 十六进制 -> 20 二进制)才能工作。

关于bittorrent - 使用 netcat ping router.utorrent.com DHT 节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13062947/

相关文章:

java - BitTorrent 协议(protocol) Java 项目 - 传入连接

c# - MonoTorrent 分发软件

.net - .Net 中的持久二叉树/哈希表

networking - 为什么 Kademlia 使用 UDP?

bittorrent - bittorrent 节点可以处理大量空闲种子的种子吗

sql - 构建分布式 bittorrent-SQL 数据库

python - 使用 Python 抓取 HTTP 横幅

macos - 从终端启动 TCP 服务器

macos - 如何在 OS X 上创建 netcat 中继?

routing - 在 torrent kademlia 路由表上实现查找节点