brightstarry / zx-bt Goto Github PK
View Code? Open in Web Editor NEW一个基于BitTorrent协议的DHT磁力嗅探器,并基于Elasticsearch存储/检索Torrent的Metadata信息
一个基于BitTorrent协议的DHT磁力嗅探器,并基于Elasticsearch存储/检索Torrent的Metadata信息
Bencode解析是总是一堆乱码,尝试utf-8和unicode也不行
很多节点(但不是全部)包括 router.utorrent.com:6881 在使用find_node / get_peers请求返回的是和selfNode最近的n个节点而不是和target / info_hash最近的n个节点 ,请问是怎么回事?
请求数据:
Frame 187: 146 bytes on wire (1168 bits), 146 bytes captured (1168 bits) on interface 0
Ethernet II, Src: AsustekC_64:aa:46 (40:16:7e:64:aa:46), Dst: Netgear_5f:00:3e (2c:30:33:5f:00:3e)
Internet Protocol Version 4, Src: 10.0.0.10, Dst: 82.221.103.244
User Datagram Protocol, Src Port: 24555, Dst Port: 6881
BitTorrent DHT Protocol
Request arguments: Dictionary...
Key: a
Value: Dictionary...
id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f1
Key: id
Value: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f1
info_hash: 1619ecc9373c3639f4ee3e261638f29b33a6cbd6
Key: info_hash
Value: 1619ecc9373c3639f4ee3e261638f29b33a6cbd6
Terminator: e
Request type: get_peers
Key: q
Value: get_peers
Version: 5554af2e
Key: v
Value: 5554af2e
Transaction ID: 0001
Key: t
Value: 0001
Message type: Request
Key: y
Value: q
Terminator: e
响应数据:
Frame 188: 550 bytes on wire (4400 bits), 550 bytes captured (4400 bits) on interface 0
Ethernet II, Src: Netgear_5f:00:3e (2c:30:33:5f:00:3e), Dst: AsustekC_64:aa:46 (40:16:7e:64:aa:46)
Internet Protocol Version 4, Src: 82.221.103.244, Dst: 10.0.0.10
User Datagram Protocol, Src Port: 6881, Dst Port: 24555
BitTorrent DHT Protocol
ip: 74162193e5e6
Key: ip
Value: 74162193e5e6
Response values: Dictionary...
Key: r
Value: Dictionary...
id: 32f54e697351ff4aec29cdbaabf2fbe3467cc267
Key: id
Value: 32f54e697351ff4aec29cdbaabf2fbe3467cc267
nodes: 16
Key: nodes
Value: 16 nodes
Node 1 (id: 8524a14a432e67ff1c2ae6dd056c1a6edd43ecda, IPv4/Port: 102.33.45.249:36833)
Node 2 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837fd, IPv4/Port: 45.213.30.137:20299)
Node 3 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837fe, IPv4/Port: 196.10.253.231:5164)
Node 4 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837ff, IPv4/Port: 194.125.220.15:5480)
Node 5 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f4, IPv4/Port: 223.169.52.15:35721)
Node 6 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f5, IPv4/Port: 5.153.58.29:25143)
Node 7 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f6, IPv4/Port: 149.245.228.4:21576)
Node 8 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f7, IPv4/Port: 217.9.46.53:36191)
Node 9 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f2, IPv4/Port: 124.46.34.67:15287)
Node 10 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f3, IPv4/Port: 177.25.69.192:29819)
Node 11 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f0, IPv4/Port: 108.125.177.220:20218)
Node 12 (id: 812a63fb182ee2d901681e6ad947e8de8620a54e, IPv4/Port: 191.30.78.22:7625)
Node 13 (id: 82442960f81b2de1da026b1d69da44ebdd8523a6, IPv4/Port: 165.141.59.52:37497)
Node 14 (id: 834c452861f91a2ce0db036a1c68db45eadc8422, IPv4/Port: 82.101.180.23:37184)
Node 15 (id: 84a04b422f66fe1d2be7dc046d1b6fdc42eddb83, IPv4/Port: 186.247.180.71:42902)
Node 16 (id: 8524a14a432e67ff1c2ae6dd056c1a6edd43ecda, IPv4/Port: 102.33.45.249:36833)
token: 0a65bc15
Key: token
Value: 0a65bc15
Terminator: e
Transaction ID: 0001
Key: t
Value: 0001
Version: 4c540011
Key: v
Value: 4c540011
Message type: Response
Key: y
Value: r
Terminator: e
感谢!
楼主心真大 nice 给你一颗星 嘻嘻
也没有向数据库数据数据。请指教一下。
Started SpiderApplication in 50.234 seconds (JVM running for 52.396)
最后一条输出是这个
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.