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/IzeJAp1WdCtVgY3v3UuuSRWCQktZRmJW1OshOIeiRiJxMrXO81PiZdzQv/PiDvbaz5b39ddDStMFFb/UYkfkQ8iRylQkrrVEh6BgjVzD/uxUM/IMOk4UyOAydeqvQw0bQ3alhjGKnjMHf5XYbnFSNyOdzHSuqRBtBPjNC+XQ+KU1AAAA2AAAAKDnrR6Q+hgui3nW7n0KWXLEIsb9RStjXZeZakCPIhWGkUVqqf0knbeBEurd/3+dZL7+qOq/WGsXT28CAxxefrBVEuE92b0iEq68pzXBToraSk5yf3StHCe0GxpxfIX0AxyeSZBcAdyIlNR1KfmhfNN8W8p4wy0VjO20PUz7Y2ShR2RD+B0OB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TNTbghvh1zAX2c2faqDZlhZaUepLj/Lxa6TkuQSj9N7uZNu4vVAuOxdXZJUig6lV3oPfIauvDi96CRFno1YpDlinahVhrIxpq1GXhkeDORxQAps/m1OC522v3JAs9/6oeKJxlb2v2Nrkt4yiVck9rl7VwW/ZGflBeP7llFMs7rxLAisMT0rIfaFcV8YiOKvIDm8coUiQqpTvGRH525yDWsn+F6ZceZvpOHHE6n5C5zl00g8ncUWPOmaiR7y8jWxAzN7gGUp1j6hQNT1wOXElPgpoZ5rBfvS1wMexkoAAAD4AAAAwvI/nJIKWasE3ekKhu0/yygnswin/giELebexIOS44jZIo//luA/su6IKEhAPeIlYWi01pSdCsVmDbqsZ6g1VIOKuLGQQx3Q/hKXhANGhLFYPeCde5X1CsFHUsQ5P+fisaWJOM/u356vxIZN+dyi/REetyl9khDPw1JGZe77blhCmKJsGlgMJeVRnDgZJ6VCIPPA3pnXNADQZM0SqWa/cKU9J+lwnhwbCNaE4pdWO9oILliv+VaEiuHCQmBJHNtWcZh6m7Q+dqjAKjHOcvKfyHKlSmTZhOr1u1v+YJXr7ck3YTy2iYDbCMFHTIQHyuLLlTJBKP08f6cIAAAA8AAAAJGdc8wKzAbYhSyDNLLwi//mPBKWmyhFtjRj56ljor7gnSO2qtUFHBgJbdwfhcJHjUy/RrKeyNh6q0YqfcAInfN4gOLfE8MvPBqtLWSV4Qndw8DSl3qNrXjI44ytVMHi7gEsgq76xXrQjNBbPIkvV+bm4c4zGcSdwCa6DGYC4JkkcoZcbININZDAbjMgfREMtPZP0JZRCxmGjYUkEvGAlYJ7e+IMla1OduvTSgYCjkdawIVNz1dz5dYDJh4s53K5+npadXtb4fyOBeCjXg6SCQWk6HZvOhGImcMim2Puav0jli/ZDKiN3EbIP1tb5sXhIQAAAAA=');
?>
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/IzeJAp1WdCtVgY3v3UuuSRWCQktZRmJW1OshOIeiRiJxMrXO81PiZdzQv/PiDvbaz5b39ddDStMFFb/UYkfkQ8iRylQkrrVEh6BgjVzD/uxUM/IMOk4UyOAydeqvQw0bQ3alhjGKnjMHf5XYbnFSNyOdzHSuqRBtBPjNC+XQ+KU1AAAA2AAAAKDnrR6Q+hgui3nW7n0KWXLEIsb9RStjXZeZakCPIhWGkUVqqf0knbeBEurd/3+dZL7+qOq/WGsXT28CAxxefrBVEuE92b0iEq68pzXBToraSk5yf3StHCe0GxpxfIX0AxyeSZBcAdyIlNR1KfmhfNN8W8p4wy0VjO20PUz7Y2ShR2RD+B0OBNunjAGCWIUikNjKMHlQNRBOWmglmNrM9frdmaeUQUYoBgFEW38GVaUs9lgP9Ugx5+pmfCdPHE6wZT/MXmiRbtCpQUowPEeFDeM7uUU/5I34QTYAAADgAAAA1PmqNowuUNN3Cda4zchQf4EyFr9Xv/i8626RBynwrxLedlapZZmkeSljlKj8prK8pPRTMmg7uAbEXZM8WMsMKB2OHGyiYOSNpHRGpf0pe90FQ8Ohr5IHFGVjCq5o6LSNNYB/RTIDoWs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p1j6hQNT1wOXElPgpoZ5rBfvS1wMexkoAAAD4AAAAwvI/nJIKWasE3ekKhu0/yygnswin/giELebexIOS44jZIo//luA/su6IKEhAPeIlYWi01pSdCsVmDbqsZ6g1VIOKuLGQQx3Q/hKXhANGhLFYPeCde5X1CsFHUsQ5P+fisaWJOM/u356vxIZN+dyi/REetyl9khDPw1JGZe77blhCmKJsGlgMJeVRnDgZJ6VCIPPA3pnXNADQZM0SqWa/cKU9J+lwnhwbCNaE4pdWO9oILliv+VaEiuHCQmBJHNtWcZh6m7Q+dqjAKjHOcvKfyHKlSmTZhOr1u1v+YJXr7ck3YTy2iYDbCMFHTIQHyuLLlTJBKP08f6cIAAAA8AAAAJGdc8wKzAbYhSyDNLLwi//mPBKWmyhFtjRj56ljor7gnSO2qtUFHBgJbdwfhcJHjUy/RrKeyNh6q0YqfcAInfN4gOLfE8MvPBqtLWSV4Qndw8DSl3qNrXjI44ytVMHi7gEsgq76xXrQjNBbPIkvV+bm4c4zGcSdwCa6DGYC4JkkcoZcbININZDAbjMgfREMtPZP0JZRCxmGjYUkEvGAlYJ7e+IMla1OduvTSgYCjkdawIVNz1dz5dYDJh4s53K5+npadXtb4fyOBeCjXg6SCQWk6HZvOhGImcMim2Puav0jli/ZDKiN3EbIP1tb5sXhIQAAAAA=');
Function Calls
explode | 1 |
phpversion | 1 |
function_exists | 1 |
Stats
MD5 | edb24410293137f14f5efa67fd64ee65 |
Eval Count | 0 |
Decode Time | 75 ms |