Skip to content

Instantly share code, notes, and snippets.

@GetToSet
Created June 9, 2021 09:05
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GetToSet/75bb78d35ddbe64615f50eb6d133563d to your computer and use it in GitHub Desktop.
Save GetToSet/75bb78d35ddbe64615f50eb6d133563d to your computer and use it in GitHub Desktop.
WeChat crash patch for macOS Monterey
cd /Applications/WeChat.app/Contents/MacOS
if ! [ "$(md5sum < ./Wechat)" = "cb4dd2fcf30071e7707dce79c3579802 -" ]
then
echo "Checksum not match or already being patched, proceed as your own risk"
read -p "Press enter to continue"
fi
cp ./Wechat ./Wechat_backup
codesign -s - --deep --force ./Wechat
LANG=C && sed -i inplace 's/\(\x89\x4D\xC4\x48\x8B\x5E\x08\x48\x85\xDB\)\x74/\1\xEB/g' ./Wechat
open /Applications/WeChat.app/
@GetToSet
Copy link
Author

GetToSet commented Jun 9, 2021

macOS 12.0 Beta 1 (21A5248p)
WeChat Version. 3.0.4 (18099), md5: c73465ee2a5aa533609f741ac2e254b0 UUID: 4A45EFA9-72D9-3B0F-A4DC-F43BCC69053A

@zijianh4
Copy link

zijianh4 commented Jun 9, 2021

Why I encounter this bug:
Checksum not match or already being patched, proceed as your own risk
Press enter to continue
./Wechat: replacing existing signature
sed: 1: "s/(\x89\x4D\xC4\x48\x8 ...": RE error: illegal byte sequence

Could you please help me? Thanks!

@KulaLAForU
Copy link

sed: 1: "s/(\x89\x4D\xC4\x48\x8 ...": RE error: illegal byte sequence

Same bug.....

@yanglink7
Copy link

🙏🙏

@nasyxx
Copy link

nasyxx commented Jun 10, 2021

Why I encounter this bug:
Checksum not match or already being patched, proceed as your own risk
Press enter to continue
./Wechat: replacing existing signature
sed: 1: "s/(\x89\x4D\xC4\x48\x8 ...": RE error: illegal byte sequence

Could you please help me? Thanks!

需要用 bash

先 bash 再 sed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment