GuidesFinding your UDID from an Unsigned IPA

Finding your UDID from an Unsigned IPA

Let's find a UDID!

To find the UDID from a signed IPA, you can use the script below (for MacOS).

Instructions

Simply put your IPA somewhere on your local disk, open your Terminal application, and execute the script to extract the UDID.

1
./get_udid.sh /path/to/application.ipa

Script

get_udid.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
IPA=$1
PROVISION=$(unzip -Z1 "${IPA}" | grep embedded.mobileprovision)
if [ -z "${PROVISION}" ]
then
echo "[!] unable to find provisioning profile"
exit 1
fi
echo "[+] found provisioning profile at ${PROVISION}"
unzip -p "${IPA}" "${PROVISION}" > /tmp/embedded.mobileprovision
echo "[+] UDIDs:"
awk '/ProvisionedDevice/, /\/array/' /tmp/embedded.mobileprovision | awk -F'<string>|<\/string>' '$0=$2'
rm /tmp/embedded.mobileprovision

Table of contents