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/0oa8mdwE1o17cxQXZXt184H4xYVQKGzIhUUHV3P8xsU8I2ps1stnOV5A3Htyg3EJvLFjCIFBDqrH/uvXBEfITKXAABCvDSOLvjXbnUMtsyHb5/l5uQ4GuhFSq11x7YXz8DcN7p/Xt84nhad0X6RWdKdVHP6Y4kE6GOjfVwN8N881AAAAwAAAAIkUVm5P20XV/oka0/67fRRTVgkmQ7S0hv95zeY4MYWy1Axf1PEEYUBLG8ZYLz6YwgutSQ5QS3650PeuxYnXBRWtvZL/C7pkweX3ltXTeekUyr/susrrQrP5fJ/2QdT97y2PachpIHlXgvCF2Wy7NI6sI7ebzTewhBeMDvYjiiheAyRPL779MwHDD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BKO85KAAAA2AAAAA+hCFVTtp04i4VYfGjgrF14t+hNZTm/mW2cT1R0OseZhL+aEIjDDY0SnifBiBXbcMUsZ5kcEztrAFCz18EvyJXpNxabmrkRUh6dh8c3L8SvDAyjC+7+FajmEkFNNHQ9QPK86RyQ4+9oyx2G7cork6jja+H0hUlQEbwCkLvLzkaoUVbmNc3vVtq2wR54k0m3YU8HpzJY3oMxblCTmo8L2sxLit/fpDCpxSyZkwWyD/fg/+HQoz7VLNPGXLWCUImjLQVbuTSV52rkECaHZr6WD+MFT5x+ziCJCAgAAADYAAAAZsjenAdvFLvNV5outTLVALHfQxngrZl8LmkfHg274/zmRpF6z/bW2ZOS+noFyzzn58r9GDtEXZK9An52HXP6jEzAt6rssbVrOw8O2Z/DFJvH0zsr8LkZGvdKL1Amlfx3jQnf+3dl7ANibDBZ1Ae+7LgWlBo+1QOsIzGLZpGUVjDtNvFHG9JBwszr6fkorDll9TOuFlH6l0WCi8Pn0QUl4LzFlAusAzBhx07v2hLDFsReJWSlx+6+5ZVFEepBnjf1KJPNoen/LU0ncS4d2oh+vNHkh+jfTf5hAAAAAA=='); 
 ?>

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/0oa8mdwE1o17cxQXZXt184H4xYVQKGzIhUUHV3P8xsU8I2ps1stnOV5A3Htyg3EJvLFjCIFBDqrH/uvXBEfITKXAABCvDSOLvjXbnUMtsyHb5/l5uQ4GuhFSq11x7YXz8DcN7p/Xt84nhad0X6RWdKdVHP6Y4kE6GOjfVwN8N881AAAAwAAAAIkUVm5P20XV/oka0/67fRRTVgkmQ7S0hv95zeY4MYWy1Axf1PEEYUBLG8ZYLz6YwgutSQ5QS3650PeuxYnXBRWtvZL/C7pkweX3ltXTeekUyr/susrrQrP5fJ/2QdT97y2PachpIHlXgvCF2Wy7NI6sI7ebzTewhBeMDvYjiiheAyRPL779MwHDDXqc5aH21LXGhUJrO1B0ZvmNYrKpnn/aHlxYDElLJkNIpZGDGkoghzK6qHtKOg351JDaHzl9HzYAAADQAAAAz5MmlCMhekXchddMJtXc3vF11FEkNeoHrd3j7BEwxU3hpNYhXAjgbRIeQpd0t3IaBRDDS2EaESereY6rpo2MTRpdPb9ECb0b6nmamMJzDasrV5lT3V509wHgFHGeQEh4K5UGRyUs8GrnxK53F8IATi7qZ5EE6YrseoGKp69na14dDGBxkkbw4ALM83MVzHUOuCZjfsTqOnxg04jrfFkgoE3pENqAH+yfxWTstTnPhRHDxyHr1lXPejAvIktUkzJOae6UjV5aJ0EA398Vbu2NpzcAAADYAAAAmmE8dep1gsBzZio6xv3x8xw5t+/Ik0ujj0Jge+FzlwYgSwjBo6vSddFHo2wELv0rgFUw5Wo7eQS79Q2L3qXPYIbPqhDf93KE9SZBmY8IX0NBkP295DHFjRDZ9zKQAntQvXek7WWGYdDdDMiNgwlf4mtTBck5D1UqvaqMcdlE7g3I0KXnVUsspdtUfXzivmsv82D8dm8p+2C9ED1r7Qz2XuikvXmrS67PxXxehKggCsn6E+O6EWNurIAf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==');

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 09becc720ad25f55c76ce4cb5730d9eb
Eval Count 0
Decode Time 97 ms