Skip to content

Commit

Permalink
解决安卓平板扫码登陆的情况下解密失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
git-jiadong committed Jan 10, 2025
1 parent c8c0e6c commit f1a32a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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},
}
Expand Down

0 comments on commit f1a32a3

Please sign in to comment.