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 if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x..

Decoded Output download

SourceGuardian The script appears to be encrypted by the SourceGuardian. Currently UnPHP can't decrypt files that require a module installed on the webserver.
<?php 
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\','/',substr($__d,2));$__e=str_replace('\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='http://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="
PHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.

1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."
2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="
3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="

";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"http://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('0FE09B764756B6DCAAQAAAAXAAAABIAAAACABAAAAAAAAAD/Eqdh4ShR3IYwdGHxAAcAiw0sCJpojMzCrPZETQ3iUI4pZ8MyRy16K1/weLQmX28xBdiqweDA3JjI8IDd0PQ9J4FTy0NE9HFFwBEEc4GVyQ7eTpsbceJhyi/qxZ2fOPG8Hiy2kgLQDOeaEUFrMtcZbyP8fBKhf4pSLGCwN4Yx4Q4HAAAA2AEAAMVyC6c2CGY6SVuAC5O3XSrBYVt0CPHEnQPhSoneydAM7AAwcc/fLH40J1pS1CLYccsYJQ3bMtdYFALI6jKLDOIUu426pfm4CXFMLS5f92Dje0y7tolrB7/yjhqfFYXugavdX3ktrIqv0DIR+c2PgWSgH6BUtJdjho6oOW8llF2dp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o6w+wZThxne3MfgvAVjcsEF+D1rJ3UT+wPr3yEDN2nhYugdI46mRZTEwDZzGW+WlP9KSlmORoXCQDBC5vhnWNau3L+5NBGbl7+XYN88aCi1tbdcvKb7CsoqeppxNwoBpC3gW2Zwor7illC+bgOhTXPXTrbQjmY5gdKZCrwfREAGuiCKqFwU9vSep1cxmtTQSdfA4bmGi1eEWGbtzTbs4h91O0qU/2t1KAAAA2AEAAJCaiViBUptuHB48YAm915OX/F2/0WEy7HYM46Ldnowlp8S9kXpx5x1nGDKLlz6FvM9Bb1kelTeU6XXcDdQ/fipaIA5Szwn9rf6fHvftqKRcX8oQrvianj0St+vLS/LbZZ7shrQA7hkgriQlBt3odfDvEimVh+/aKKVJtXdYA/CFYySfjS5l0UazIpngFnjMNwnvn+9JVlz9HR1BxXE2m7CI6mzgJktpI9FTZcd8pjhDG//ayBLODXA6tpIjCeYRL2f5rga5U1+jsM0tKdkwPfZKKi3GIn6y7+LMzw+Kq71JzswSRoJ7iExoYNuvdo7PiuTMTCQhrd8KfUBPNMG/cMKw0wOnI/IuIWPCfY4U9ylOWgOmE3BjOBAo5/feBvm9MqFsFNeBgQq/3pj6ACwmbZJcO8eEtgzqNACbh2W8UCUalmth4YnotFSeRIGvZi6QWtp+CmwlnCzIvN+hvUbh9SfEMvcHlFHroxpl6f6obJguWqFfw3gtWzSMcSDX238DphWtarayLQe1/r5ih9LkD6ewKCXx0bOVF3esKDaHvE3ie0Vs6EY5nnum7Iu671g48p9CFqiQEmKgomnATm1H0CVg5ax94y1Ze3nK1IcdEVz09vqBzGtiBDcAAAAA'); ?>

Did this file decode correctly?

Original Code

<?php
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='http://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"http://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('0FE09B764756B6DCAAQAAAAXAAAABIAAAACABAAAAAAAAAD/Eqdh4ShR3IYwdGHxAAcAiw0sCJpojMzCrPZETQ3iUI4pZ8MyRy16K1/weLQmX28xBdiqweDA3JjI8IDd0PQ9J4FTy0NE9HFFwBEEc4GVyQ7eTpsbceJhyi/qxZ2fOPG8Hiy2kgLQDOeaEUFrMtcZbyP8fBKhf4pSLGCwN4Yx4Q4HAAAA2AEAAMVyC6c2CGY6SVuAC5O3XSrBYVt0CPHEnQPhSoneydAM7AAwcc/fLH40J1pS1CLYccsYJQ3bMtdYFALI6jKLDOIUu426pfm4CXFMLS5f92Dje0y7tolrB7/yjhqfFYXugavdX3ktrIqv0DIR+c2PgWSgH6BUtJdjho6oOW8llF2dpRbwe7ZzazRO8QnhtAEW4+1k8hbJc6rwy1Ef8IajvGWTLbHB3L09bXX3ErJ+RTpX6TvMvx5H8rrz72c4qlzKY+E1uzmzhxO4jvzQRq1bxn87vEkK9ihpL0r8yMdD3FCymwMdqf6+S9Uzyh2Gs7gpb8KD6+w+qYwlMOeCC7W/ywnk/YQoPLLcxEirA2vn1DWvVrvxZGwtkKgNKpd32HrJzeiSQgCLBmwcqkUUEUec4fiNTt3FMFJVOWPM5OhGHC+ibXo6724Bzvgi+DyMObVf+Te37Jb8G3a5vgjoWMbuT8sWm5nu1knqIcZ7eTrYVUYMks9atZM9VfvCNO8rXW1GMsNTGh0Y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7shrQA7hkgriQlBt3odfDvEimVh+/aKKVJtXdYA/CFYySfjS5l0UazIpngFnjMNwnvn+9JVlz9HR1BxXE2m7CI6mzgJktpI9FTZcd8pjhDG//ayBLODXA6tpIjCeYRL2f5rga5U1+jsM0tKdkwPfZKKi3GIn6y7+LMzw+Kq71JzswSRoJ7iExoYNuvdo7PiuTMTCQhrd8KfUBPNMG/cMKw0wOnI/IuIWPCfY4U9ylOWgOmE3BjOBAo5/feBvm9MqFsFNeBgQq/3pj6ACwmbZJcO8eEtgzqNACbh2W8UCUalmth4YnotFSeRIGvZi6QWtp+CmwlnCzIvN+hvUbh9SfEMvcHlFHroxpl6f6obJguWqFfw3gtWzSMcSDX238DphWtarayLQe1/r5ih9LkD6ewKCXx0bOVF3esKDaHvE3ie0Vs6EY5nnum7Iu671g48p9CFqiQEmKgomnATm1H0CVg5ax94y1Ze3nK1IcdEVz09vqBzGtiBDcAAAAA');

Function Calls

explode 1
phpversion 1
function_exists 1

Variables

$__v 4.1.1
$__x [{'key': None, 'value': '4'}, {'key': None, 'value': '1'}, {'key': None, 'value': '1'}]

Stats

MD5 cc3a68d8367063550f753ba93518344a
Eval Count 0
Decode Time 104 ms