Files
CoreInject/tool/buhoCleaner.sh
QiuChenly 77ef7319a1 init
2023-12-31 17:54:10 +08:00

44 lines
3.0 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# declare user=$(whoami)
sudo /bin/launchctl unload /Library/LaunchDaemons/com.drbuho.BuhoCleaner.PrivilegedHelperTool.plist
# sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper
sudo /bin/rm /Library/LaunchDaemons/com.drbuho.BuhoCleaner.PrivilegedHelperTool.plist
sudo /bin/rm /Library/PrivilegedHelperTools/com.drbuho.BuhoCleaner.PrivilegedHelperTool
echo "大胆!检测到你在用盗版软件,这可能会危害你的设备!甚至被国家安全局和保密处就地正法,请三思!"
helper='/Applications/BuhoCleaner.app/Contents/Library/LaunchServices/com.drbuho.BuhoCleaner.PrivilegedHelperTool'
echo ACCD: 6A 01 58 C3 |sudo xxd -r - "$helper" #intel CFEqual
echo 20AC8: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - "$helper" #arm64 CFEqual
echo "正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系开发者发送你的Mac所有信息你即将被留存侵权数字证据束手就擒"
offsets=$(grep -a -b -o "\x3C\x73\x74\x72\x69\x6E\x67\x3E\x61\x6E\x63\x68\x6F\x72\x20\x61\x70\x70\x6C\x65\x20\x67\x65\x6E\x65\x72\x69\x63\x20\x61\x6E\x64\x20\x69\x64\x65\x6E\x74\x69\x66\x69\x65\x72\x20\x22\x63\x6F\x6D\x2E\x64\x72\x62\x75\x68\x6F\x2E\x42\x75\x68\x6F\x43\x6C\x65\x61\x6E\x65\x72\x22\x20\x61\x6E\x64\x20\x28\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x6C\x65\x61\x66\x5B\x66\x69\x65\x6C\x64\x2E\x31\x2E\x32\x2E\x38\x34\x30\x2E\x31\x31\x33\x36\x33\x35\x2E\x31\x30\x30\x2E\x36\x2E\x31\x2E\x39\x5D\x20\x2F" $helper | cut -d: -f1)
sed 's/\x0A/\n/g' <<< "$offsets" | while read -r s; do
declare -i start=$s
if [ "$start" -le 0 ]; then
echo "起始点在 $start,文件已被修改跳过注入Helper。"
break
fi
echo "69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 64 72 62 75 68 6F 2E 42 75 68 6F 43 6C 65 61 6E 65 72 22 3C 2F 73 74 72 69 6E 67 3E" | xxd -r -p | dd of="$helper" bs=1 seek="$((start + 8))" count=44 conv=notrunc
start_pos=$((start + 44 + 8))
fill_byte="09"
offset1=$((322 - 44 - 8))
for ((i=0;i<offset1;i++)); do
pos=$((start_pos + i))
echo "$fill_byte" | xxd -r -p | dd bs=1 seek=$pos of="$helper" count=1 conv=notrunc
done
done
echo "定位你的Mac物理地址完成正在向国家安全局特工发送你的逮捕许可..."
echo "下发逮捕许可完成,即将有人来查你的水表,你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码."
xattr -c '/Applications/BuhoCleaner.app'
src_info='/Applications/BuhoCleaner.app/Contents/Info.plist'
/usr/libexec/PlistBuddy -c "Set :SMPrivilegedExecutables:com.drbuho.BuhoCleaner.PrivilegedHelperTool \"identifier \\\"com.drbuho.BuhoCleaner.PrivilegedHelperTool\\\"\"" "$src_info"
codesign -f -s - --all-architectures --deep /Applications/BuhoCleaner.app/Contents/Library/LaunchServices/com.drbuho.BuhoCleaner.PrivilegedHelperTool
echo "恭喜你你的Mac已经被我植入了后门程序,现在即将结束整个进程,特工已经在对面楼中布下天罗地网,请主动自首争取宽大处理(虽然宽大不了几天),记得下辈子不要用盗版软件🙏。\n"