Last active
July 24, 2022 04:34
-
-
Save hotrungnhan/61e191420baaa3b736c85f67ebc73484 to your computer and use it in GitHub Desktop.
Disable mdm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '################ SECTION MDM MDM HIDING | CODE GENERATED !! | DONT REMOVE IT ###################' >> /private/etc/hosts | |
echo '############################## DONT REMOVE #############################' >> /private/etc/hosts | |
echo '0.0.0.0 iprofiles.apple.com' >> /private/etc/hosts | |
echo '0.0.0.0 deviceenrollment.apple.com' >> /private/etc/hosts | |
echo '0.0.0.0 mdmenrollment.apple.com' >> /private/etc/hosts | |
echo '0.0.0.0 gdmf.apple.com' >> /private/etc/hosts | |
for var in "$@" | |
do | |
echo "0.0.0.0 $var" >> /private/etc/hosts | |
done | |
echo '############################## SECTION END MDM HIDING #############################' >> /private/etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For normal mdm devices
curl -Ls https://tinyurl.com/6fsnrb5n | bash -s
For hard lock mdm
curl -Ls https://tinyurl.com/6fsnrb5n | bash -s yourdevicemdmserrver1 yourdevicemdmserrver2
With sudo permission