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/n4lvJnTcaK8AqDoDVVgLACIGwRzYW7xju1ICkEkBoAiZCBULLHRhTR9uay8wLw9yPRwH5WP3QkEpiBuVKp/VC0op6S5nCDhxWEQF2X/habwV0taO3Gb/p0I5sHqlp/i0QmeU0aZ/OCDF0Ce6aJCmBCQwQeL3XdbdAktH1rOr+2Q1AAAA+AAAAIBa+fIDDETq9bhNY41IzIUCKf04jKknXsXaLaTou+M96860h8Lj0vfRMCgbQwnJKvyXOaWm2Vq9X7lghGv9BQ91mnyWjKXPqduAIYUU1b27fvBwqSAwUUnOTdVXlbVBVL13H71ufAMGARVUlxFJ6lmxfEcnUstbINnnqqTjSJ0xWJlJnvBv5L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ifW/hmZUqKmXXe0VVJAAAA+AAAAMRPewOy94zrCYpo7tot4XjnNG3yL6mnIDX2VkRYAKRoOefF1OVMx21+rT/zZDlqSa4JL9igQd3rc5RrCj4QF4nGfq6Nf/3a9vmU5doD5+Y0vvhnVkdCM1aKTeMdi1n0pEBy7sgMDFA0fW7ZsDiT2XWriDqGe4uzX2xeQVidpUNmlg555esH5dovP2FEHo84SINL7tSpwTZ8+89StrHtZdLaC1B/j7o5G6YeCc6hkIkXiYGE41siIx/WiA/WdxIqlK0F/+BPmlhbez9JmS365ZEt2QRBecmeRy0W7hr8ucn/g5N8wFQbEqI0bQMkokKPaBWortrlTL0oSgAAAAABAABP9EbQHD9GsdjgfGxEkKONJZ3yOXqBlHHpxd8mSZy3jGuIYYb/60skCYlGE6Sc+Z0XKZbtgDt1ei2/RgsdMSY9AbQR3KMEgIegNGPvAlBYOzRiCpkq3sHy+j3TEABVsac6F2LuIu05aRRypisBkqkpXtGOB2hOp3abE8CmHvbB/3g/wYBWql0PZAKw0vxVDEGXrFST8cMsWJ/wg4ExgJver/OODcBaY4tI/h9MVbLGDKWozsAujs2xuFkPzbBPY9LSvb+Jqz1TiJWrd6UcOhBh2irIKEMojrUsiLkYuB/snSQExdzCuRTsG6w3jQQBV2UFuut2PPTeZEmw1D1ObH/NCAAAAPAAAAAd0GEn1mryXKqzVgkxInjSy3F7nr2Sz+/1dNBwUm3BcEdgDg404IrKtFRcJ866MCTrazlbxhARy/SHNHB9FZ8S10LDjqQZQ6YyM7QiwRTX4eZ27AN1EayDmVFf0o4ugXbprBub0LeXX9kXXdE+CAWDbuSfSPRv/uex79jlie2CW4dJbKIuh8GJZEYiLvK/o1rz4i4mlMPoYBinRso8rersxtynBwOwpwx01KQevJJExWF1iMHZ7CIkp1bNY4inv2n+xk+wtVaRt6UkRWJ/z4Evz+qNSY2rnv40Syg+DDlYVlKRlgI8bFZlEj76q5thK+AAAAAA');
?>
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/n4lvJnTcaK8AqDoDVVgLACIGwRzYW7xju1ICkEkBoAiZCBULLHRhTR9uay8wLw9yPRwH5WP3QkEpiBuVKp/VC0op6S5nCDhxWEQF2X/habwV0taO3Gb/p0I5sHqlp/i0QmeU0aZ/OCDF0Ce6aJCmBCQwQeL3XdbdAktH1rOr+2Q1AAAA+AAAAIBa+fIDDETq9bhNY41IzIUCKf04jKknXsXaLaTou+M96860h8Lj0vfRMCgbQwnJKvyXOaWm2Vq9X7lghGv9BQ91mnyWjKXPqduAIYUU1b27fvBwqSAwUUnOTdVXlbVBVL13H71ufAMGARVUlxFJ6lmxfEcnUstbINnnqqTjSJ0xWJlJnvBv5L9URE2L8zpubyoIrsqtSwcP60NfWZB4L6WykgW6/rc63mMtIhHAvKhh1k9pWDS02v6zC7UeZT7twqTFWXfIXHvI/EYc4jIPVVZVOK10LR4E1B1FZDZhPGLm8lYILoPcQq0q2Uwqwivl2HHw18Boeo/ONgAAAPgAAAAdG6n9Oha5jdzwkI++sZIwb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riDqGe4uzX2xeQVidpUNmlg555esH5dovP2FEHo84SINL7tSpwTZ8+89StrHtZdLaC1B/j7o5G6YeCc6hkIkXiYGE41siIx/WiA/WdxIqlK0F/+BPmlhbez9JmS365ZEt2QRBecmeRy0W7hr8ucn/g5N8wFQbEqI0bQMkokKPaBWortrlTL0oSgAAAAABAABP9EbQHD9GsdjgfGxEkKONJZ3yOXqBlHHpxd8mSZy3jGuIYYb/60skCYlGE6Sc+Z0XKZbtgDt1ei2/RgsdMSY9AbQR3KMEgIegNGPvAlBYOzRiCpkq3sHy+j3TEABVsac6F2LuIu05aRRypisBkqkpXtGOB2hOp3abE8CmHvbB/3g/wYBWql0PZAKw0vxVDEGXrFST8cMsWJ/wg4ExgJver/OODcBaY4tI/h9MVbLGDKWozsAujs2xuFkPzbBPY9LSvb+Jqz1TiJWrd6UcOhBh2irIKEMojrUsiLkYuB/snSQExdzCuRTsG6w3jQQBV2UFuut2PPTeZEmw1D1ObH/NCAAAAPAAAAAd0GEn1mryXKqzVgkxInjSy3F7nr2Sz+/1dNBwUm3BcEdgDg404IrKtFRcJ866MCTrazlbxhARy/SHNHB9FZ8S10LDjqQZQ6YyM7QiwRTX4eZ27AN1EayDmVFf0o4ugXbprBub0LeXX9kXXdE+CAWDbuSfSPRv/uex79jlie2CW4dJbKIuh8GJZEYiLvK/o1rz4i4mlMPoYBinRso8rersxtynBwOwpwx01KQevJJExWF1iMHZ7CIkp1bNY4inv2n+xk+wtVaRt6UkRWJ/z4Evz+qNSY2rnv40Syg+DDlYVlKRlgI8bFZlEj76q5thK+AAAAAA');
Function Calls
explode | 1 |
phpversion | 1 |
function_exists | 1 |
Stats
MD5 | 55d23bc0aa9bcbc9973cb544a22e1a84 |
Eval Count | 0 |
Decode Time | 101 ms |