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('DE330C844756C5B4AAQAAAAXAAAABIAAAACABAAAAAAAAAD/N/IFJmPHfZ+tLy26AidTnNPJT+uFSTjTHXaLxiZzcQN+5P/FEI5T6BndAPA/g9UYYyuuOOZBxKQ1zlMWkK3CcEfLSx0pUf8hI3AsfJj8rR2DBQSxLEUXm9oebGElbJ0HbvrS5qw2MqdsTSW/JlYlWaWzNga4efoNkzT396vhl8oEAAAAcAAAAM18TJSQ80c2K8S7XE1zHebpU7d9d5YMpQrAeh2JOhuSu7YwJjlRfmkH8pAVmr7d6rVZ3mZBoB1QNhatxr8eDAMsHXBchZSbJ7RdJ+B7X6DOy96X6NQaCVXyZ7dVoGr1zu4JwTR2KLJ0wgxFsP3IoEsFAAAAiAAAAKipink/Z8uD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ycjpiaZZ4AwmtV60GoyQrMu5ShfZ1Qf/znzV8JFwOdgjmRgB/Ub1IkBLVoC0Ud4Q1+65CeHRsJiupF8TNxD+hhwmhB2A6nsHu/Kq38HjZErd2DZu2k+h5ChuO+ifpdqWW1jdewLX/FiMMX+dBJPTqkOYoNN+7qB5vckXZ2a992JKawoAAAAAA='); 
 ?>

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('DE330C844756C5B4AAQAAAAXAAAABIAAAACABAAAAAAAAAD/N/IFJmPHfZ+tLy26AidTnNPJT+uFSTjTHXaLxiZzcQN+5P/FEI5T6BndAPA/g9UYYyuuOOZBxKQ1zlMWkK3CcEfLSx0pUf8hI3AsfJj8rR2DBQSxLEUXm9oebGElbJ0HbvrS5qw2MqdsTSW/JlYlWaWzNga4efoNkzT396vhl8oEAAAAcAAAAM18TJSQ80c2K8S7XE1zHebpU7d9d5YMpQrAeh2JOhuSu7YwJjlRfmkH8pAVmr7d6rVZ3mZBoB1QNhatxr8eDAMsHXBchZSbJ7RdJ+B7X6DOy96X6NQaCVXyZ7d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V8u2hR6G8uwRSrpNN4y1mrzu9ZIU+P+zggAAACIAAAAjSezS/ycjpiaZZ4AwmtV60GoyQrMu5ShfZ1Qf/znzV8JFwOdgjmRgB/Ub1IkBLVoC0Ud4Q1+65CeHRsJiupF8TNxD+hhwmhB2A6nsHu/Kq38HjZErd2DZu2k+h5ChuO+ifpdqWW1jdewLX/FiMMX+dBJPTqkOYoNN+7qB5vckXZ2a992JKawoAAAAAA=');

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 247b24fc4c6b08eb31fd87838d5d76b2
Eval Count 0
Decode Time 171 ms