Giter Site home page Giter Site logo

brightstarry / zx-bt Goto Github PK

View Code? Open in Web Editor NEW
337.0 17.0 89.0 820 KB

一个基于BitTorrent协议的DHT磁力嗅探器,并基于Elasticsearch存储/检索Torrent的Metadata信息

Java 90.92% CSS 0.54% JavaScript 4.97% HTML 3.57%
dht bittorrent bencode

zx-bt's Issues

关于BEP-05的问题

很多节点(但不是全部)包括 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

感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.