安装证书只能用文本编辑打开,打开之后只有代码
#!/usr/bin/env bash
BASE_PATH=$(
cd $(dirname "$0");
pwd
)
COLOR_INFO='\033[0;34m'
COLOR_ERR='\033[0;35m'
COLOR_Xin='\033[0;32m'
NOCOLOR='\033[0m'
PDFM_DIR="/Applications/Parallels Desktop.app"
PDFM_LOC="/Library/Preferences/Parallels/parallels-desktop.loc"
PDFM_VER="18.2.0-53488"
PDFM_DISP_CRACK="${BASE_PATH}/prl_disp_service"
PDFM_DISP_DST="${PDFM_DIR}/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
PDFM_DISP_ENT="${BASE_PATH}/ParallelsService.entitlements"
LICENSE_FILE="${BASE_PATH}/licenses.json"
LICENSE_DST="/Library/Preferences/Parallels/licenses.json"
PDFM_DISP_ORIGIN_HASH="70dcdf678c3af759134e1b3dffba40b4ae671a0e297a4c1b83a04e45d5c271be"
PDFM_DISP_HASH="a9678c5edd4afc203253b23baaa5344d77ceb939ca8f5023c4bbc4bc91605cb1"
LICENSE_HASH="ac735f3ee7ac815539f07e68561baceda858cf7ac5887feae863f10a60db3d79"
# read location from parallels-desktop.loc
if [ -f "${PDFM_LOC}" ]; then
PDFM_DIR=$(cat "${PDFM_LOC}")
fi
# check parallels desktop install
if [ ! -d "${PDFM_DIR}" ]; then
echo -e "${COLOR_ERR}[-] Not found ${PDFM_DIR}, are you installed Parallels Desktop ${PDFM_VER}?${NOCOLOR}"
echo " Download from here: https://download.parallels.com/desktop/v18/${PDFM_VER}/ParallelsDesktop-${PDFM_VER}.dmg"
exit 1
fi
# check parallels desktop version
VERSION_1=$(defaults read "${PDFM_DIR}/Contents/Info.plist" CFBundleShortVersionString)
VERSION_2=$(defaults read "${PDFM_DIR}/Contents/Info.plist" CFBundleVersion)
INSTALL_VER="${VERSION_1}-${VERSION_2}"
if [ "${PDFM_VER}" != "${VERSION_1}-${VERSION_2}" ]; then
echo -e "${COLOR_ERR}[马克喵提示您] 这个破解是新版的 ${PDFM_VER}, 但你安装的是 ${INSTALL_VER}.${NOCOLOR}"
echo " Download from here: https://download.parallels.com/desktop/v18/${PDFM_VER}/ParallelsDesktop-${PDFM_VER}.dmg"
exit 2
fi
# check root permission
if [ "$EUID" -ne 0 ]; then
echo -e "${COLOR_ERR}[马克喵提示您] 🔑 下方输入开机密码回车(输入密码看不见)来注入证书.${NOCOLOR}"
exec sudo "$0" "$@"
exit 5
fi
# if prl_disp_service running, stop it
if pgrep -x "prl_disp_service" &> /dev/null; then
echo -e "${COLOR_INFO}[*] 停止 Parallels Desktop${NOCOLOR}"
pkill -9 prl_client_app &>/dev/null
# ensure prl_disp_service stop
"${PDFM_DIR}/Contents/MacOS/Parallels Service" service_stop &>/dev/null
sleep 1
launchctl stop /Library/LaunchDaemons/com.parallels.desktop.launchdaemon.plist &>/dev/null
sleep 1
pkill -9 prl_disp_service &>/dev/null
sleep 1
rm -f "/var/run/prl_*"
共以下 1 个回答
退回18.1.1版本