Skip to content

Instantly share code, notes, and snippets.

@FilippoBiga
Created March 15, 2015 19:35
Show Gist options
  • Save FilippoBiga/952389c468ccac270a96 to your computer and use it in GitHub Desktop.
Save FilippoBiga/952389c468ccac270a96 to your computer and use it in GitHub Desktop.
lockdown identity
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.private.lockdown.finegrained-get</key>
<array>
<string>NULL/ActivationInfo</string>
<string>NULL/ActivationPrivateKey</string>
<string>NULL/ActivationRegulatoryVariant</string>
<string>NULL/ActivationState</string>
<string>NULL/ActivityURL</string>
<string>NULL/BrickState</string>
<string>NULL/BuildExpireTime</string>
<string>NULL/Deactivate</string>
<string>NULL/DebugDockPresent</string>
<string>NULL/DeviceCertificate</string>
<string>NULL/DeviceName</string>
<string>NULL/DevicePrivateKey</string>
<string>NULL/GetActivationRecord</string>
<string>NULL/RegulatoryImages</string>
<string>NULL/SBLockdownEverRegisteredKey</string>
<string>NULL/TicketLock</string>
<string>NULL/TrustedHostAttached</string>
<string>NULL/UnassociatedCarrier</string>
<string>NULL/WeHaveATicket</string>
</array>
</dict>
</plist>
#include <liblockdown.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
LockdownConnectionRef conn = lockdown_connect();
if (conn)
{
printf("Connected: %p\n", conn);
SecIdentityRef identity = lockdown_copy_identity(conn);
if (identity)
{
printf("Identity: %p\n", identity);
}
}
}
#!/bin/bash
for f in `find / -type f -perm +111 -print`; do
R=`ldid -e $f 2>&1 | grep 'NULL/'`;
if [ "$R" != "" ]; then
echo [+] $f
echo $R
fi
R=""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment