From f1a32a3f9a101b7bd25e86ca2097d896d9ffda85 Mon Sep 17 00:00:00 2001 From: HAL <328961630@qq.com> Date: Sat, 11 Jan 2025 00:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=AE=89=E5=8D=93=E5=B9=B3?= =?UTF-8?q?=E6=9D=BF=E6=89=AB=E7=A0=81=E7=99=BB=E9=99=86=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E8=A7=A3=E5=AF=86=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/wechat/wechat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/wechat/wechat.go b/pkg/wechat/wechat.go index 1e67b55..0f1c38a 100644 --- a/pkg/wechat/wechat.go +++ b/pkg/wechat/wechat.go @@ -716,7 +716,7 @@ func GetWeChatKey(info *WeChatInfo) string { for { index := hasDeviceSybmol(buffer[offset:]) if index == -1 { - log.Println("hasDeviceSybmolxxxx") + log.Println("has not DeviceSybmol") break } fmt.Printf("hasDeviceSybmol: 0x%X\n", index) @@ -738,6 +738,7 @@ func GetWeChatKey(info *WeChatInfo) string { func hasDeviceSybmol(buffer []byte) int { sybmols := [...][]byte{ {'a', 'n', 'd', 'r', 'o', 'i', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00}, + {'p', 'a', 'd', '-', 'a', 'n', 'd', 'r', 'o', 'i', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x00, 0x00}, {'i', 'p', 'h', 'o', 'n', 'e', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00}, {'i', 'p', 'a', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00}, }