簡體   English   中英

tcp xmpp 格式錯誤的數據包 node.js

[英]tcp xmpp malformed packet node.js

我正在嘗試為幾年前關閉的游戲重新創建 xmpp 服務器,但我在接收數據包時遇到問題。

我收到的前兩個數據包很好,但是當它到達第三個時,它看起來格式不正確,這是正常的嗎? 如果是這樣,我可以從這個數據包中獲取有效負載嗎? 我在 Node.JS 中使用 net 模塊

Output:

Received Packet: <?xml version="1.0" ?><stream:stream to="127.0.0.1" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xml:lang="en">

Sent Packet: <stream:stream xmlns='jabber:client' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' from='127.0.0.1' id='12345' version='1.0'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></stream:features>

Received Packet: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

Sent Packet: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

Received Packet: ▬♥☺S☺O♥☺b��u�?�w��∟�s �Gt;/%T�P���m�(985▬‼32/♣♦§↕ ¶♠♥☺§st☻☻F

<proceed/>之后,您的連接正在使用 TLS(參見 RFC 6120 的相關部分),因此您收到的數據是加密的,您顯然不會解密。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM