Skip to content

Instantly share code, notes, and snippets.

@n0mi1k
Last active February 19, 2025 15:05
Show Gist options
  • Save n0mi1k/d5c440589025d9da770dca1cffa91d92 to your computer and use it in GitHub Desktop.
Save n0mi1k/d5c440589025d9da770dca1cffa91d92 to your computer and use it in GitHub Desktop.
.IPA file extracter for Apple Configurator
import os
import shutil
"""
Steps to retrieve the IPA file from the Configurator app:
1. Install Apple Configurator from the Mac App Store and sign in
2. Connect your iOS device to your Mac
3. Select "Add > Apps..." and search for the app you want to install, click "Add"
4. The newer Apple Configurator deletes the IPA after installing it, so you'll need to use this tool to grab it
5. Run this script and wait for the app to be installed
NOTE: Remember to modify appsDir and ipaDir accordingly below
"""
appsDir = "/Users/user/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps" # Configurator app directory
ipaDir = "/Users/user/Desktop/IPAs" # Directory to extract to
if not os.path.exists(ipaDir):
os.makedirs(ipaDir)
print("[+] Waiting for new IPA...")
ipaList = []
while True:
for root, dirs, files in os.walk(appsDir):
for file in files:
if file.endswith(".ipa"):
if os.path.join(root, file) in ipaList:
continue
ipaPath = os.path.join(root, file)
print(ipaPath)
ipaList.append(ipaPath)
shutil.copy2(ipaPath, os.path.join(ipaDir, file))
print(f"[+] Extracted new IPA {file} to {ipaDir}")
@aantix
Copy link

aantix commented Dec 10, 2024

This saved me a ton of time. 🙏

@sickerin
Copy link

thanks, worked for me too :)

@xsha256
Copy link

xsha256 commented Dec 29, 2024

It’s not working for me, I get this message:
No Purchased Apps
Use the App Store on a device to purchase new apps. Apps that you buy will be visible here.
Screenshot 2024-12-29 at 15 47 09

@sickerin
Copy link

Do u have the authenticator app installed or purchased already? You can head to App Store to purchase it, etc. Only apps already owned by your Apple id will be shown.

@xsha256
Copy link

xsha256 commented Dec 29, 2024

Do u have the authenticator app installed or purchased already? You can head to App Store to purchase it, etc. Only apps already owned by your Apple id will be shown.

Yes, I already have it installed on my Iphone

@quangtuyen1993
Copy link

Hi @xsha256. I think that you should need to logout then login again to resolve that problem

@xsha256
Copy link

xsha256 commented Dec 29, 2024

Hi @quangtuyen1993, I logged out and back in on my Mac and iPhone, but the same problem persists
Screenshot 2024-12-29 at 17 08 18

@h4x0r
Copy link

h4x0r commented Jan 29, 2025

Hi @n0mi1k,

Thank you for this very handy tool!
I've made a small change that makes this script usable out of the box (no need to change username -- I just used $HOME):

https://gist.github.com/h4x0r/200de7e899c76da0c712afd18dce8a3b/revisions

Please feel free to incorporate the change.

Cheers,
@h4x0r

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