Created
March 15, 2015 19:35
-
-
Save FilippoBiga/952389c468ccac270a96 to your computer and use it in GitHub Desktop.
lockdown identity
This file contains hidden or 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
<?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> |
This file contains hidden or 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
#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); | |
} | |
} | |
} |
This file contains hidden or 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
#!/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