解决安卓平板扫码登陆的情况下解密失败的问题
This commit is contained in:
parent
c8c0e6c1d0
commit
f1a32a3f9a
@ -716,7 +716,7 @@ func GetWeChatKey(info *WeChatInfo) string {
|
|||||||
for {
|
for {
|
||||||
index := hasDeviceSybmol(buffer[offset:])
|
index := hasDeviceSybmol(buffer[offset:])
|
||||||
if index == -1 {
|
if index == -1 {
|
||||||
log.Println("hasDeviceSybmolxxxx")
|
log.Println("has not DeviceSybmol")
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
fmt.Printf("hasDeviceSybmol: 0x%X\n", index)
|
fmt.Printf("hasDeviceSybmol: 0x%X\n", index)
|
||||||
@ -738,6 +738,7 @@ func GetWeChatKey(info *WeChatInfo) string {
|
|||||||
func hasDeviceSybmol(buffer []byte) int {
|
func hasDeviceSybmol(buffer []byte) int {
|
||||||
sybmols := [...][]byte{
|
sybmols := [...][]byte{
|
||||||
{'a', 'n', 'd', 'r', 'o', 'i', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00},
|
{'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', '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},
|
{'i', 'p', 'a', 'd', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user