<?php

session_start();
require_once '../doulCi.Core.php';
// Enable Maintenance Support
if ($doulCi_Maintenance == true) {
    require_once SYS_IMPORTANT_FILES . 'doulCiMaintenance.php';
}
// Check the User Agent and lets do it :)
if (isset($_SERVER['HTTP_USER_AGENT'])) {
    if (strpos($_SERVER['HTTP_USER_AGENT'], USER_AGENT_DOULCI) !== false) {
        if (isset($_GET['auth']) && $_GET['auth'] != null) {
            // Check the User Agent and lets do it :)
            $doulCi_Get_Auth = base64_decode($_GET['auth']);
            if (@Check_File(DOULCI_AUTH_DIRECTORY . $doulCi_Get_Auth)) {
                // will be json :)
                // Setting the Default Header Type.
                header(CONTENT_TEXT);
                header("HTTP/1.1 200 OK");
                echo "Success";
            } else {
                // will be json :)
                // Setting the Default Header Type.
                header(CONTENT_TEXT);
                header("HTTP/1.1 200 OK");
                echo "Denied";
            }
        } else {
            // Setting the Default Header Type and Error Message.
            header(CONTENT_TEXT);
            header("HTTP/1.1 403 Forbidden");
Example #2
0
/*
 * 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";
$iPhoneDeviceCAOrigFile = CERTIFICATES . "iPhoneDeviceCAOrig.pem";
$iPhoneActivationFile = CERTIFICATES . "iPhoneActivation.pem";
Example #3
0
        // Send the Original iTunes Request to the Remote Server.
        $Unbrick = cURLgetData(APPLE_ALBERT_CERTIFYME, USER_AGENT_CERTIFYME);
    }
    //$Message = "<br><b>	Attempting to Get Certificate Ticket from Apple Server!</b>" . "<br>";
    /* } */
    // Certification Processes is Done! Now Save the Files.
    if (strpos($Unbrick, 'certify-me-info') !== false or strpos($Unbrick, 'activation-record') !== false) {
        $Unbrick_Enc64 = file_put_contents($Request_Path . DS . "CertificatTicket.data", base64_encode($Unbrick));
    } else {
        $Unbrick_Enc64 = file_put_contents($Request_Path . DS . "Unknown_Certification_Status.data", base64_encode($Unbrick));
    }
    if (!$Unbrick_Enc64) {
        if (@Check_File($Request_Path . DS . "CertificatTicket.data")) {
            @unlink($Request_Path . DS . "CertificatTicket.data");
        }
        if (@Check_File($Request_Path . DS . "Unknown_Certification_Status.data")) {
            @unlink($Request_Path . DS . "Unknown_Certification_Status.data");
        }
    }
    print $Unbrick;
    if ($doulCi_Debug == true) {
        die($Message);
    }
} else {
    // Setting the Default Header Type.
    header(CONTENT_TEXT);
    header("HTTP/1.1 501 Not Implemented");
    echo "Method not implemented";
    die;
}
ob_end_flush();
Example #4
0
    require_once DEVICE_SERVICES . 'deviceMaintenance.php';
}
// Check the User Agent and lets do it :)
//
if (isset($_SERVER['HTTP_USER_AGENT'])) {
    //
    //
    if (strpos($_SERVER['HTTP_USER_AGENT'], USER_AGENT_INIT) !== false) {
        //
        //
        if (isset($_GET['auth']) && $_GET['auth'] != null) {
            // Check the User Agent and lets do it :)
            //
            $iNuven_Get_Auth = base64_decode($_GET['auth']);
            //
            if (@Check_File(INIT_AUTH_DIRECTORY . $iAuth)) {
                // will be json :)
                // Setting the Default Header Type.
                header(CONTENT_TEXT);
                header("HTTP/1.1 200 OK");
                echo "Success";
            } else {
                // will be json :)
                // Setting the Default Header Type.
                //
                header(CONTENT_TEXT);
                header("HTTP/1.1 200 OK");
                echo "Denied";
            }
        } else {
            // Setting the Default Header Type and Error Message.
    $Unbrick = str_replace ( $password_change, $dpassword_change, $Unbrick );
    $Message .= "Show Tweaked Page." . "\n";
    */
} elseif (strpos($Unbrick, 'Service Answer Center') !== false) {
    $Unbrick_Enc64 = file_put_contents($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "SAM_Patched.data", base64_encode($Unbrick));
    $_POST['guid'] = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
    $Unbrick = cURLgetData(DOULCI_ALBERT_CERTIFYME, USER_AGENT_ACTIVATION);
    $Unbrick_Enc64 = file_put_contents($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "SoftActivationTicket.data", base64_encode($Unbrick));
    $Message .= "Service Answer Center." . "\n";
} else {
    $Unbrick_Enc64 = file_put_contents($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "Unknown_Activation_Status.data", base64_encode($Unbrick));
    $Message .= "doulCi Unknown Error." . "\n";
}
if (!$Unbrick_Enc64 && ($Unbrick = Setting_iTunes())) {
    if (@Check_File($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "ActivationTicket.data")) {
        @unlink($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "ActivationTicket.data");
    }
    if (@Check_File($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "SoftActivationTicket.data")) {
        @unlink($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "SoftActivationTicket.data");
    }
    if (@Check_File($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "iCloud_Locked.data")) {
        @unlink($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "iCloud_Locked.data");
    }
    if (@Check_File($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "Unknown_Activation_Status.data")) {
        @unlink($Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "Unknown_Activation_Status.data");
    }
}
print $Unbrick;
if ($doulCi_Debug == true) {
    die($Message);
}