Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Created by PhpStorm. * User: mustapha * Date: 2/22/18 * Time: 6:2..
Decoded Output download
<?php
/**
* Created by PhpStorm.
* User: mustapha
* Date: 2/22/18
* Time: 6:25 PM
*/
class Handler
{
private $request = FALSE;
private $key = FALSE;
private $type = 1;
private $appid = FALSE;
private $pass = FALSE;
public $msg = FALSE;
public function __construct( $para = NULL )
{
if ( $para ) {
$this->key = $para[ 'key' ];
$this->appid = $para[ 'appleid' ];
$this->pass = $para[ 'password' ];
$this->type = empty( $para[ 'type' ] ) ? $this->type : $para[ 'type' ];
return $this->Request();
}
}
private function Request()
{
$this->request = [
'appleid' => $this->appid,
'password' => $this->pass,
'key' => $this->key,
'subscription' => 1,
'action' => 'remove',
'format' => 'JSON', ];
$curl = curl_init( "https://api.ifreeicloud.co.uk" );
curl_setopt_array(
$curl, [
CURLOPT_TIMEOUT => 180,
CURLOPT_CONNECTTIMEOUT => 180,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_FOLLOWLOCATION => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_AUTOREFERER => TRUE,
CURLOPT_VERBOSE => FALSE,
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $this->request,
CURLOPT_USERAGENT => 'Applekit/Software', ]
);
$Res = curl_exec( $curl );
$Http = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
curl_close( $curl );
if ( $this->type == 1 ) {
return $this->Result( $Http, $Res );
} else {
return $this->Result2( $Http, $Res );
}
}
public function serviec( $para )
{
$this->request = [
'service' => $para[ 'id' ],
'imei' => $para[ 'imei' ],
'key' => $para[ 'key' ],
'action' => 'remove',
'format' => 'JSON', ];
$curl = curl_init( "https://api.ifreeicloud.co.uk" );
curl_setopt_array(
$curl, [
CURLOPT_TIMEOUT => 180,
CURLOPT_CONNECTTIMEOUT => 180,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_FOLLOWLOCATION => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_AUTOREFERER => TRUE,
CURLOPT_VERBOSE => FALSE,
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $this->request,
CURLOPT_USERAGENT => 'Applekit/Software', ]
);
$Res = json_decode( curl_exec( $curl ) );
$Http = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
curl_close( $curl );
if ( $Http != 200 ) {
return [ 'status' => FALSE, 'msg' => 'Error: HTTP Code' . $Http ];
} elseif ( $Res->success !== TRUE ) {
return [ 'status' => FALSE, 'msg' => 'Error: ' . $Res->error ];
} else {
return [ 'status' => TRUE, 'msg' => $Res->response ];
}
}
private function Result( $Http, $Res )
{
if ( $Http == 200 && stripos( $Res, "Invalid Apple ID\/Password combination." ) == FALSE && stripos( $Res, "This domain is not authorised to use SilentRemove API" ) == FALSE && stripos( $Res, "This Apple ID is locked" ) == FALSE ) {
$this->msg = [
'status' => TRUE,
'msg' => $Res, ];
return $this->msg;
} else {
$this->msg = [
'status' => FALSE,
'msg' => $Res, ];
return $this->msg;
}
}
private function Result2( $Http, $Res )
{
$ress = json_decode( $Res, TRUE );
if ( $Http == 200 && stripos( $Res, "This domain is not authorised to use SilentRemove API" ) == FALSE && stripos( $Res, "Invalid PHP API Key" ) == FALSE ) {
$this->msg = [
'status' => TRUE,
'msg' => $ress, ];
return $this->msg;
} else {
$this->msg = [
'status' => FALSE,
'msg' => $ress, ];
return $this->msg;
}
}
} ?>
Did this file decode correctly?
Original Code
<?php
/**
* Created by PhpStorm.
* User: mustapha
* Date: 2/22/18
* Time: 6:25 PM
*/
class Handler
{
private $request = FALSE;
private $key = FALSE;
private $type = 1;
private $appid = FALSE;
private $pass = FALSE;
public $msg = FALSE;
public function __construct( $para = NULL )
{
if ( $para ) {
$this->key = $para[ 'key' ];
$this->appid = $para[ 'appleid' ];
$this->pass = $para[ 'password' ];
$this->type = empty( $para[ 'type' ] ) ? $this->type : $para[ 'type' ];
return $this->Request();
}
}
private function Request()
{
$this->request = [
'appleid' => $this->appid,
'password' => $this->pass,
'key' => $this->key,
'subscription' => 1,
'action' => 'remove',
'format' => 'JSON', ];
$curl = curl_init( "https://api.ifreeicloud.co.uk" );
curl_setopt_array(
$curl, [
CURLOPT_TIMEOUT => 180,
CURLOPT_CONNECTTIMEOUT => 180,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_FOLLOWLOCATION => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_AUTOREFERER => TRUE,
CURLOPT_VERBOSE => FALSE,
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $this->request,
CURLOPT_USERAGENT => 'Applekit/Software', ]
);
$Res = curl_exec( $curl );
$Http = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
curl_close( $curl );
if ( $this->type == 1 ) {
return $this->Result( $Http, $Res );
} else {
return $this->Result2( $Http, $Res );
}
}
public function serviec( $para )
{
$this->request = [
'service' => $para[ 'id' ],
'imei' => $para[ 'imei' ],
'key' => $para[ 'key' ],
'action' => 'remove',
'format' => 'JSON', ];
$curl = curl_init( "https://api.ifreeicloud.co.uk" );
curl_setopt_array(
$curl, [
CURLOPT_TIMEOUT => 180,
CURLOPT_CONNECTTIMEOUT => 180,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_FOLLOWLOCATION => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_AUTOREFERER => TRUE,
CURLOPT_VERBOSE => FALSE,
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $this->request,
CURLOPT_USERAGENT => 'Applekit/Software', ]
);
$Res = json_decode( curl_exec( $curl ) );
$Http = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
curl_close( $curl );
if ( $Http != 200 ) {
return [ 'status' => FALSE, 'msg' => 'Error: HTTP Code' . $Http ];
} elseif ( $Res->success !== TRUE ) {
return [ 'status' => FALSE, 'msg' => 'Error: ' . $Res->error ];
} else {
return [ 'status' => TRUE, 'msg' => $Res->response ];
}
}
private function Result( $Http, $Res )
{
if ( $Http == 200 && stripos( $Res, "Invalid Apple ID\/Password combination." ) == FALSE && stripos( $Res, "This domain is not authorised to use SilentRemove API" ) == FALSE && stripos( $Res, "This Apple ID is locked" ) == FALSE ) {
$this->msg = [
'status' => TRUE,
'msg' => $Res, ];
return $this->msg;
} else {
$this->msg = [
'status' => FALSE,
'msg' => $Res, ];
return $this->msg;
}
}
private function Result2( $Http, $Res )
{
$ress = json_decode( $Res, TRUE );
if ( $Http == 200 && stripos( $Res, "This domain is not authorised to use SilentRemove API" ) == FALSE && stripos( $Res, "Invalid PHP API Key" ) == FALSE ) {
$this->msg = [
'status' => TRUE,
'msg' => $ress, ];
return $this->msg;
} else {
$this->msg = [
'status' => FALSE,
'msg' => $ress, ];
return $this->msg;
}
}
}
Function Calls
None |
Stats
MD5 | 03caf407192aab2d3a415e2e15c1a9d0 |
Eval Count | 0 |
Decode Time | 41 ms |