NapNeko / NapCatQQ-Desktop

NapCatQQ的Desktop程序
GNU General Public License v3.0
73 stars 4 forks source link

[BUG] PacketServer 未按预期工作 #24

Closed ZoruaFox closed 3 weeks ago

ZoruaFox commented 3 weeks ago

系统版本

Windows Server 2022 Datacenter

NapCat Desktop 版本

1.3.0

发生了什么?

在启动机器人后,PacketServer 出现反复断联的情况。

考虑到 PacketServer 属于可选功能,可以将PacketServer设置为可被关闭的配置项。

因为此功能在 NapCat-Desktop 上为默认行为因此汇报在这里,如果开发者确定是 NapCat 核心问题可以直接回复,我会在 NapCat 的仓库发起 issue。

如何复现

  1. 启动 NapCat-Desktop
  2. 按需配置机器人
  3. 启动机器人,Packet日志中观察到明显错误。

期望的结果?

正常运行。

NapCat Desktop 运行日志

WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
receive message: {"action":"init","pid":10524,"recv":"380BB04","send":"38076D0"}
init frida with pid: 10524
WebSocket connection closed: unexpectedly failed with error code: 0x00000057
ZoruaFox commented 3 weeks ago

更新:在 NapCat 3.4.5 对应的 napcat.packet.exe 中,单独启动该程序并在 NapCat-Desktop 中使用 127.0.0.1::8086 连接 PacketServer 未出现此问题。初步认为此问题应为 NapCat-Desktop 内置的 PacketServer 与 NapCat 版本不一致导致,仅为猜测。

MliKiowa commented 3 weeks ago

ncd打包的frida版本存在问题

HeartfeltJoy commented 3 weeks ago

已解决,重新下载1.3.0即可