![](/img/trans.png)
[英]receiving unreadable text while trying to bencode a "find_node" query
我正在使用bencod.NET嘗試發送 find_node 查詢並使用引導節點接收答案。 看起來請求運行良好,我確實在 wireshark 和 c# 上得到了響應。問題是在解碼時(使用 bencoding ofc)我得到了不可讀和不可用的字典代碼: id 是一個隨機的 20 字節數組,如果您想知道 ...
[英]receiving unreadable text while trying to bencode a "find_node" query
我正在使用bencod.NET嘗試發送 find_node 查詢並使用引導節點接收答案。 看起來請求運行良好,我確實在 wireshark 和 c# 上得到了響應。問題是在解碼時(使用 bencoding ofc)我得到了不可讀和不可用的字典代碼: id 是一個隨機的 20 字節數組,如果您想知道 ...
[英]I want to get the information of a torrent file in a desired format through python
我正在編寫代碼以使用 python 解析 torrent 文件中的跟蹤器信息。 output如下。 [b'udp://tracker.openbittorrent.com:80/announce'] [b'udp://tracker.opentrackr.org:1337/announce'] ...
[英]Attempts to parse bencode / torrent file in R
我希望我可以通過 R 自動解析種子文件。 我嘗試使用R-bencode package: 但面臨錯誤: 此外,如果我嘗試僅解析此文件的一部分bdecode('\xe7\xc9\xe0\b\xfbD-\xd8\xd6(\xe2\004>\x9c\xda\005Zar\x8c\xdfV\x88\0 ...
[英][ERROR]:Unable to set value to keychain Error Domain=com.samsoffes.sskeychain Code=-50 “errSecParam” UserInfo={NSLocalizedDescription=errSecParam}
我正在使用appcelerator Titanium和bencoding。 以下代碼可能是什么錯誤? 錯誤附在下面 [錯誤]:無法將值設置為鑰匙串錯誤Domain = com.samsoffes.sskeychain代碼= -50“ errSecParam” UserInfo = ...
[英]KRPC query message dict mysterious prefix
我的torrent客戶端DHT實現經常在消息字典之前收到帶有4個額外字節的KRPC dict消息。 這是一個例子: 接下來,是每個規范的d編碼的內容d ,然后是e 。 看起來這4個字節之后的字典似乎總是包含q的y ,因此它們大概是查詢。 ...
[英]Bencoded string length in java
我對bencoding有點困惑。 根據規范,當我使用bencode字符串時,我需要使用以下格式: 長度:字符串 字符串垃圾郵件變為4:垃圾郵件 我的問題: 4是本編碼字符串的符號數量,還是utf-8字節的數量? 例如,如果我要編碼字符串gâteau 應該指定什 ...
[英]How to decode bencoded torrent data
我正在嘗試使用Bencode解碼torrent文件的內容來從torrent文件中提取大小和名稱。 我做了pip install bencode然后測試了torrent文件的其中一行,如您所見。 這是pip安裝在python lib中的文件: 事實是,我不太了解如何使用此Be ...
[英]Bencode in Python with a Debian?
我正在嘗試將bencode放在我的debian上以便解碼一些bittorrent數據,但我不知道如何從這樣的鏈接中進行操作,例如: https : //pypi.python.org/pypi/bencode/ 1.0 我下載了與我的版本相對應的軟件包,即py2.7,但隨后我不知道如何處理 ...