Skip to content

Commit f1a32a3

Browse files
committed
解决安卓平板扫码登陆的情况下解密失败的问题
1 parent c8c0e6c commit f1a32a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/wechat/wechat.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func GetWeChatKey(info *WeChatInfo) string {
716716
for {
717717
index := hasDeviceSybmol(buffer[offset:])
718718
if index == -1 {
719-
log.Println("hasDeviceSybmolxxxx")
719+
log.Println("has not DeviceSybmol")
720720
break
721721
}
722722
fmt.Printf("hasDeviceSybmol: 0x%X\n", index)
@@ -738,6 +738,7 @@ func GetWeChatKey(info *WeChatInfo) string {
738738
func hasDeviceSybmol(buffer []byte) int {
739739
sybmols := [...][]byte{
740740
{'a', 'n', 'd', 'r', 'o', 'i', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00},
741+
{'p', 'a', 'd', '-', 'a', 'n', 'd', 'r', 'o', 'i', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x00, 0x00},
741742
{'i', 'p', 'h', 'o', 'n', 'e', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00},
742743
{'i', 'p', 'a', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00},
743744
}

0 commit comments

Comments
 (0)