Skip to content

Commit 3903ffa

Browse files
committed
Add manual override for value
1 parent cea2e24 commit 3903ffa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

appstate/decode.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"strings"
2020

2121
"github.com/rs/zerolog"
22+
"go.mau.fi/util/exerrors"
2223
"google.golang.org/protobuf/proto"
2324

2425
waBinary "go.mau.fi/whatsmeow/binary"
@@ -497,6 +498,11 @@ func (proc *Processor) validatePatch(
497498
if vm != nil || err != nil || !allowEvilLIDHack {
498499
return vm, err
499500
}
501+
if version == 150 && bytes.Equal(indexMAC, exerrors.Must(hex.DecodeString("a9f10469e5862e0fb7ae1d0d4276e01ee233e29f36d311e4b6e95c6a7827e38b"))) {
502+
return hex.DecodeString("c7d81bdec860404e60f3355304e8114973079146cf845842fe990fce2733d619")
503+
} else if version == 150 && bytes.Equal(indexMAC, exerrors.Must(hex.DecodeString("9384a89d86d59e9623c4c34b55dd6b0db4e0a2d7568ac55b3e1a0cec6bfc6ea5"))) {
504+
return hex.DecodeString("2d2e64fc70aa6b05d7dab825d6b869e5fbbf843332bfcc94ebb4c25a9d3dcd49")
505+
}
500506
vm, newIndexMAC, err := proc.evilHackForLIDMutation(
501507
ctx, patchName, indexMAC, patch.Mutations[maxIndex], maxIndex, patch.Mutations, true,
502508
)

0 commit comments

Comments
 (0)