RemoveActivationLock
Series of scripts to let you look up the activation lock bypass code in JSS and use it to remove the activation lock on an iPad
Install / Use
/learn @dnikles/RemoveActivationLockREADME
removeActivationLock
Series of scripts to let you look up the activation lock bypass code in JSS and use it to remove the activation lock on an iPad
Setup to use these scripts
- Install Apple Configurator 2
- Launch Apple Configurator 2, and under the Apple Configurator 2 menu, choose Install Automation Tools...
- Grab a copy of jq and put it in the same directory as these scripts (you can get away with not using jq if you modify the scripts to use xml instead of JSON and use a combo of xpath and some string manipulation to get the data you want)
- Edit getbypasscode.py and enter a username and password for a JSS user with appropriate rights (must be able to download config profiles and get activation lock bypass code) as well as the JSS url. Also, pick a random config profile number that exists in your JSS (used to generate the session token, you can use a different action to generate it if you'd like)
- Edit unlockiPad.sh and enter the username, password, and url for your JSS
Using these scripts
- Plug in an activation locked iPad
- Run ./unlockiPad.sh
How it works
- Using the automation tools from Apple Configurator 2, the serial number of the plugged in iPad is grabbed
- This serial number is looked up in the JSS to get the JSS ID of the iPad
- This ID is passed off to the python script getbypasscode.py
- This script creates a session with the JSS, then gets a session token to authenticate with so it can perform the action of grabbing the activation lock bypass code. This code is then passed to stdout
- Tags are stripped from the code
- The bypass code is passed to an apple script which closes configurator if it is open, launches itunes, waits (hopefully long enough) for the iPad to be seen by itunes, tabs to the correct field, enters the bypass code, and quits iTunes
Related Skills
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
