解决安卓平板扫码登陆的情况下解密失败的问题

This commit is contained in:
HAL 2025-01-11 00:27:40 +08:00
parent c8c0e6c1d0
commit f1a32a3f9a

View File

@ -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},
}