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 /************************************************************************ ..

Decoded Output download

<?php 
 
    /************************************************************************ 
    *  
    * @name        ExApi 
    * @package     Exwos Framework Ex-External-Code 
    * @version     1.0.0 
    * @copyright   Copyright (c) 2016, Erik Hor 
    *  
    ************************************************************************/ 
     
class ExApi { 
	 
    private $_key; 
    private $account_id; 
     
	public function __construct($account_id, $key) 
	{ 
		if(!function_exists('curl_init')) 
		{ 
		    echo "Install 'curl_init'!!!"; 
        }else 
        { 
            require_once 'certificate.php'; 
            $this->_key = $key; 
            $this->account_id = $account_id; 
            $this->loader(); 
        } 
	} 
	 
	private function loader() 
    { 
        $post = array("account_id"=>$this->account_id,"secure"=>$this->_key);  
        $defaults = array(  
            CURLOPT_POST => 1,  
            CURLOPT_HEADER => 0,  
            CURLOPT_URL => 'https://dev-fw.exwos.com/get_connect',  
            CURLOPT_FRESH_CONNECT => 1,  
            CURLOPT_RETURNTRANSFER => 1,  
            CURLOPT_FORBID_REUSE => 1,  
            CURLOPT_TIMEOUT => 4,  
            CURLOPT_POSTFIELDS => http_build_query($post)  
        );  
        $ch = curl_init();  
        curl_setopt_array($ch, ($defaults));  
        if( ! $json = curl_exec($ch)) 
        { 
            trigger_error(curl_error($ch)); 
        }  
        curl_close($ch);  
        $ex_page = json_decode($json); 
        echo base64_decode($ex_page->ex->ex_loader); 
    } 
 
} ?>

Did this file decode correctly?

Original Code

<?php

    /************************************************************************
    * 
    * @name        ExApi
    * @package     Exwos Framework Ex-External-Code
    * @version     1.0.0
    * @copyright   Copyright (c) 2016, Erik Hor
    * 
    ************************************************************************/
    
class ExApi {
	
    private $_key;
    private $account_id;
    
	public function __construct($account_id, $key)
	{
		if(!function_exists('curl_init'))
		{
		    echo "Install 'curl_init'!!!";
        }else
        {
            require_once 'certificate.php';
            $this->_key = $key;
            $this->account_id = $account_id;
            $this->loader();
        }
	}
	
	private function loader()
    {
        $post = array("account_id"=>$this->account_id,"secure"=>$this->_key); 
        $defaults = array( 
            CURLOPT_POST => 1, 
            CURLOPT_HEADER => 0, 
            CURLOPT_URL => 'https://dev-fw.exwos.com/get_connect', 
            CURLOPT_FRESH_CONNECT => 1, 
            CURLOPT_RETURNTRANSFER => 1, 
            CURLOPT_FORBID_REUSE => 1, 
            CURLOPT_TIMEOUT => 4, 
            CURLOPT_POSTFIELDS => http_build_query($post) 
        ); 
        $ch = curl_init(); 
        curl_setopt_array($ch, ($defaults)); 
        if( ! $json = curl_exec($ch))
        {
            trigger_error(curl_error($ch));
        } 
        curl_close($ch); 
        $ex_page = json_decode($json);
        echo base64_decode($ex_page->ex->ex_loader);
    }

}

Function Calls

None

Variables

None

Stats

MD5 86e911c2bfac43bf0a5f4878b57b69aa
Eval Count 0
Decode Time 84 ms