Created
March 28, 2014 18:26
-
-
Save falkirks/9839627 to your computer and use it in GitHub Desktop.
Tiny iOS UDID retrieval script
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
<? | |
if (isset($_GET["udid"])) exit($_GET["udid"]); | |
elseif (isset($_GET["grab"])) exit(header("Location: ". $_SERVER["PATH_INFO"] . "?udid=" . substr(strstr(strstr($HTTP_RAW_POST_DATA, '</dict>', true),"<string>"),8,40), true, 301)); | |
header('Content-type: application/x-apple-aspen-config; chatset=utf-8'); | |
echo('<?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>PayloadContent</key> | |
<dict> | |
<key>URL</key> | |
<string><?echo("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");?>?grab=1</string> | |
<key>DeviceAttributes</key> | |
<array> | |
<string>UDID</string> | |
</array> | |
</dict> | |
<key>PayloadOrganization</key> | |
<string></string> | |
<key>PayloadDisplayName</key> | |
<string>UDID</string> | |
<key>PayloadVersion</key> | |
<integer>1</integer> | |
<key>PayloadUUID</key> | |
<string>9CF421B3-9836-4454-BC8A-982CBD3C943C</string> | |
<key>PayloadIdentifier</key> | |
<string>be.udid.mini</string> | |
<key>PayloadDescription</key> | |
<string></string> | |
<key>PayloadType</key> | |
<string>Profile Service</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment