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 /* SAiF PHP */ error_reporting(0); $REQUEST_METHOD = $_SERVER["REQUEST_METH..

Decoded Output download

<?php 
/* 
 SAiF PHP 
 */ 
 
error_reporting(0); 
$REQUEST_METHOD = $_SERVER["REQUEST_METHOD"]; 
if (strcasecmp($REQUEST_METHOD, "GET") == 0) { 
    header($_SERVER["SERVER_PROTOCOL"] . "Error method", true, 405); 
    exit; 
} 
require_once "Manager/config.php"; 
$data = file_get_contents("php://input"); 
$jsondata = json_decode($data, true); 
$Subscribers_Key = $jsondata["key"]; 
$Subscribers_udid = $jsondata["udid"]; 
$token = $jsondata["token"]; 
$host = $_SERVER["HTTP_HOST"]; 
$Token_data = file_get_contents("https://ibda3-android.com/Check3.php?token=" . $token . "&website=" . $host); 
$GetInfoToken = json_decode($Token_data, true); 
$Miz_3 = $GetInfoToken["Miz_3"]; 
if ($Subscribers_udid && $Subscribers_Key && $Miz_3 == "YES") { 
    $sql = "SELECT * FROM `Subscribers`  WHERE  `Subscribers_udid` = '" . $Subscribers_udid . "' AND  `Subscribers_Key` = '" . $Subscribers_Key . "'"; 
    $result = mysqli_query($link, $sql); 
    if (0 < mysqli_num_rows($result)) { 
        while ($row = mysqli_fetch_assoc($result)) { 
            $NSTimeNow = date("Y/m/d H:i:s"); 
            $ExpDate = strtotime($row["Subscribers_lastTime"]); 
            $nowD = strtotime($NSTimeNow); 
            if ($nowD < $ExpDate) { 
                $active = 1; 
            } else { 
                $active = 0; 
            } 
            if ($active == 1) { 
                $sql = "SELECT * FROM Apps"; 
                $result = $link->query($sql); 
                exit("cannot write"); 
            } 
            if ($active == 0) { 
                $myObj->Checked_0x = "NO"; 
                $myObj->time_Finished = $row["Subscribers_lastTime"]; 
                $myJSON = json_encode($myObj); 
                echo $myJSON; 
            } else { 
                $myObj->Checked_0x = "ERROR__"; 
                $myJSON = json_encode($myObj); 
                echo $myJSON; 
            } 
        } 
    } else { 
        $myObj->Checked_0x = "Not_Found_Code"; 
        $myJSON = json_encode($myObj); 
        echo $myJSON; 
    } 
} else { 
    $myObj->Checked_0x = "ERROR_ON_POST"; 
    $myJSON = json_encode($myObj); 
    echo $myJSON; 
} 
 
?> 

Did this file decode correctly?

Original Code

<?php
/*
 SAiF PHP
 */

error_reporting(0);
$REQUEST_METHOD = $_SERVER["REQUEST_METHOD"];
if (strcasecmp($REQUEST_METHOD, "GET") == 0) {
    header($_SERVER["SERVER_PROTOCOL"] . "Error method", true, 405);
    exit;
}
require_once "Manager/config.php";
$data = file_get_contents("php://input");
$jsondata = json_decode($data, true);
$Subscribers_Key = $jsondata["key"];
$Subscribers_udid = $jsondata["udid"];
$token = $jsondata["token"];
$host = $_SERVER["HTTP_HOST"];
$Token_data = file_get_contents("https://ibda3-android.com/Check3.php?token=" . $token . "&website=" . $host);
$GetInfoToken = json_decode($Token_data, true);
$Miz_3 = $GetInfoToken["Miz_3"];
if ($Subscribers_udid && $Subscribers_Key && $Miz_3 == "YES") {
    $sql = "SELECT * FROM `Subscribers`  WHERE  `Subscribers_udid` = '" . $Subscribers_udid . "' AND  `Subscribers_Key` = '" . $Subscribers_Key . "'";
    $result = mysqli_query($link, $sql);
    if (0 < mysqli_num_rows($result)) {
        while ($row = mysqli_fetch_assoc($result)) {
            $NSTimeNow = date("Y/m/d H:i:s");
            $ExpDate = strtotime($row["Subscribers_lastTime"]);
            $nowD = strtotime($NSTimeNow);
            if ($nowD < $ExpDate) {
                $active = 1;
            } else {
                $active = 0;
            }
            if ($active == 1) {
                $sql = "SELECT * FROM Apps";
                $result = $link->query($sql);
                exit("cannot write");
            }
            if ($active == 0) {
                $myObj->Checked_0x = "NO";
                $myObj->time_Finished = $row["Subscribers_lastTime"];
                $myJSON = json_encode($myObj);
                echo $myJSON;
            } else {
                $myObj->Checked_0x = "ERROR__";
                $myJSON = json_encode($myObj);
                echo $myJSON;
            }
        }
    } else {
        $myObj->Checked_0x = "Not_Found_Code";
        $myJSON = json_encode($myObj);
        echo $myJSON;
    }
} else {
    $myObj->Checked_0x = "ERROR_ON_POST";
    $myJSON = json_encode($myObj);
    echo $myJSON;
}

?>

Function Calls

strcasecmp 1
error_reporting 1

Variables

$REQUEST_METHOD None

Stats

MD5 73cad820929dd4e39a9d081d84082360
Eval Count 0
Decode Time 56 ms