Example #1
0
            $ActivationState = $Nodes->item($i + 1)->nodeValue;
            break;
        case "ProductVersion":
            $ProductVersion = $Nodes->item($i + 1)->nodeValue;
            break;
        case "BuildVersion":
            $BuildVersion = $Nodes->item($i + 1)->nodeValue;
            break;
    }
}
// Prepare to Path
//
$DevicePath = DEVICE_ACTIVATION . $SerialNumber . "_" . $ProductType . "_" . $BuildVersion;
// Check Path
//
$isDevicePath = Create_Dir($DevicePath, $Mode = 0755);
// Prepare iTunes Request POST Data.
//
file_put_contents($DevicePath . DS . "TicketRequest.json", json_encode($_POST));
file_put_contents($DevicePath . DS . "TicketRequest.serialized", serialize($_POST));
#	file_put_contents ( $DevicePath . DS . "TicketRequest.txt", $_POST );
//
//
$FairPlayCertChain = $DeviceEncoded->getElementsByTagName('data')->item(1)->nodeValue;
$FairPlaySignature = $DeviceEncoded->getElementsByTagName('data')->item(2)->nodeValue;
//
file_put_contents($DevicePath . DS . "FairPlayCertChain.der", $FairPlayCertChain);
file_put_contents($DevicePath . DS . "FairPlaySignature.key", $FairPlaySignature);
//
$DeviceEncoded->save($DevicePath . DS . "ActivationInfo.plist");
$DeviceDecoded->save($DevicePath . DS . "ActivationInfoXML.plist");
Example #2
0
<?php

/*
 * doulCi Project Config File.
 */
// PHP Configuration
error_reporting(E_ALL);
ini_set('auto_detect_line_endings', true);
// Load Necessary Plist Library.
require_once CLASSES . 'parsers' . DS . 'plist' . DS . 'PlistParser.inc';
$parser = new PlistParser();
// Create Directories.
Create_Dir(CACHE, $mode = 0755);
Create_Dir(TSS_BLOB, $mode = 0755);
Create_Dir(ACTIVATION_BLOB, $mode = 0755);
Create_Dir(DOULCI_AUTH_DIRECTORY, $mode = 0755);
// Remote Close The Server
if (@Check_File(ROOT . DS . "Remote_Controle.data")) {
    // Debugging & Maintenance Setup.
    $doulCi_Maintenance = true;
    $doulCi_Scamming_Filter = true;
} else {
    // Debugging & Maintenance Setup.
    $doulCi_Maintenance = false;
    $doulCi_Scamming_Filter = false;
}
$doulCi_Debug = false;
// Certificates PKI Files
$FairplayFile = CERTIFICATES . "data.pem";
$FairplayPublicFile = CERTIFICATES . "dataPublic.pem";
$iPhoneActivationOrigFile = CERTIFICATES . "iPhoneActivationOrig.pem";
Example #3
0
     if (strpos($_SERVER['HTTP_USER_AGENT'], 'AppleTV') !== false or strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false or strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false or strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') !== false) {
         // Make it Freeze and he we go :)
         require_once ROOT . DS . 'doulCi.Proxy.php';
         die;
     } else {
         // Setting the Default Header & User Agent Type.
         Header(CONTENT_HTML);
         ini_set('user_agent', USER_AGENT_ACTIVATION);
     }
 }
 // $Unbrick = Setting_iTunes ();
 // die($Unbrick);
 // Define & Create Directories.
 if (isset($_POST['AppleSerialNumber'])) {
     $Request_Path = ACTIVATION_BLOB . DS . $_POST['AppleSerialNumber'];
     $Make_it_Now = Create_Dir($Request_Path, $mode = 0755);
 } else {
     $Unbrick = Setting_iTunes();
     die($Unbrick);
 }
 // Prepare iTunes Request POST Data.
 file_put_contents($Request_Path . DS . "deviceActivation_Ticket_Request.json", json_encode($_POST, JSON_PRETTY_PRINT));
 file_put_contents($Request_Path . DS . "deviceActivation_Ticket_Request.serialized", serialize($_POST));
 $FirstPlist = file_get_contents($Request_Path . DS . "deviceActivation_Ticket_Request.json");
 $SecondPlist = file_get_contents($Request_Path . DS . "deviceActivation_Ticket_Request.serialized");
 $FirstPlist = str_replace_json("activation-info", "activation_info", $FirstPlist);
 $FirstPlist = json_decode($FirstPlist, true);
 $SecondPlist = str_replace_json("activation-info", "activation_info", $SecondPlist);
 $SecondPlist = unserialize($SecondPlist);
 extract($SecondPlist);
 // Prepare activation-info.plist File.