diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 599d622..0000000 --- a/.htaccess +++ /dev/null @@ -1,4 +0,0 @@ - - AddType text/xml .plist - AddType application/x-apple-aspen-config .mobileconfig - \ No newline at end of file diff --git a/readme.md b/readme.md index a031a79..ff7dd7f 100644 --- a/readme.md +++ b/readme.md @@ -1,64 +1,92 @@ -# How to get iOS UDID without a Mac or PC? -This project shows how to do it using a mobileconfig file and hosting it on a Apache server. +# Get iOS Device UDID -# Create the .mobileconfig file +A simple web application to get iOS device UDID using configuration profiles. Features a modern UI with device-specific experiences. +## Features -``` +- QR code for desktop users +- Direct download for iOS devices +- Automatic device detection +- Clean, modern UI +- One-click UDID copying +- Email sharing capability + +## Project Structure + +``` +├── index.html # Main page with device detection +├── instruction.php # Installation instructions +├── show_detail.php # UDID display page +├── device.mobileconfig # iOS configuration profile +├── get_mobileconfig.php # Profile delivery +└── processes_data.php # Profile data processing +``` + +## How It Works + +1. Desktop users see a QR code to scan with their iOS device +2. iOS users get direct profile download +3. After installation, device information is displayed +4. Users can copy UDID or share via email + +## Running the Project + +Start the PHP development server: + +```bash +php -S localhost:3030 +``` + +Then open http://localhost:3030 in your browser. + +For iOS devices to access from other devices, use your local IP address: + +```bash +php -S 0.0.0.0:3030 +``` + +Then access using http://your-local-ip:3030 + +## Technical Details + +### device.mobileconfig +```xml + PayloadContent URL - + http://your-domain/processes_data.php DeviceAttributes UDID - IMEI - ICCID + DEVICE_NAME VERSION PRODUCT PayloadOrganization - + UDID Finder PayloadDisplayName - + Get Device UDID PayloadVersion 1 PayloadUUID - + 44D4B36F-01F5-4C6E-B474-F6B8BF6F8FF8 PayloadIdentifier - + com.getudid.profile PayloadDescription - + Install this profile to get your device UDID. PayloadType Profile Service ``` +## Notes - - -# sign the .mobileconfig file -``` -openssl smime -sign -signer -inkey -certfile -nodetach -outform der -in -out -``` - -# deliver the .mobileconfig file -### SET Content-Type Header -``` -application/x-apple-aspen-config -``` - -# Verify Keys (optional) -``` -openssl x509 -noout -modulus -in server.crt | openssl md5 -openssl rsa -noout -modulus -in server.key | openssl md5 -``` - - -## Source -https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/OTASecurity/OTASecurity.html#//apple_ref/doc/uid/TP40009505-CH3-SW1 \ No newline at end of file +- Make sure to update the URL in device.mobileconfig to match your domain +- For production use, HTTPS is recommended +- The built-in PHP server is for development only