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='https://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=\"https://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('817D5112C7C4FD1DAAQAAAAXAAAABHAAAACABAAAAAAAAAD/FxqpwN81AnlqD325XRDregl4bjTIexv43qTiA8V5quTc878KyHqjJV/nLgnFqoDU1Yxj2Lu78PQF7SpjdOQsgRungmc00aJG+tNBiLpUmh2TZaYgtDvQBxbBy2Lc0H7CMsQGdwQ4wLMV41rjOVoN8VEAAAA4CAAAaiwDJppSiubsLzvLyoggXoG71CB4E9cItdEKVxV3ZukGx16YqYKZYg2aqriijr+Tk0a0ycdPVDxgVw4wZ1vLdBNTeofmAaCUzdr0pFNO0BshghPvnqprfCm/0DdSCKMl8Pvl8DsaknF0tGpXnTwRPnMwUzkSOFodyCBk2ClUya9AnkUNKtuyrIe10+OZDtiEEMNgYoHuTK5aQzI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F6A8YlCSovL2u3iCIukB48NH52yhH+Ky4XIol1jK6W74soILsgnnSkJlREkRyAUg/mzOu2icnyAM7R9/MK1yolc2eIdzbiPYu7RkPBLrECFVXX2rD3OlC4RTjmUoj7nF+d0BWZgHTqCSUxJxTy09KcxwdfnpmB6C+rjcJSx7tR1PPovabGpFQmicZSWuSKmIUvkL0Rjr7I1YBVJZ0va76qqlwEhs/wUkY4uAVjFi6PgRRCwF5n2urrkV7OeRmYtoKHypHLCDbH0ztfkkMzRyd4BY9DOmcEARduJg69KojzGYsmqox/of/pxwi0AVaT4oSqtCzDEU7eDDel62sbzm5LxqV+OdzPzKdYo1+e2hQ01ZQ6z0K6KI8yr3g0jwKWGcp7na14hQ986sLl5FhaPNVL3WUsn1T/vP034Loa3tpdpdJXdK+RsKIAAAAAA='); ?>
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='https://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=\"https://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('817D5112C7C4FD1DAAQAAAAXAAAABHAAAACABAAAAAAAAAD/FxqpwN81AnlqD325XRDregl4bjTIexv43qTiA8V5quTc878KyHqjJV/nLgnFqoDU1Yxj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hmh0aiqJy3g4m5OWaq2CIYPiwXjhVSYgAmP7QY/Z8kL06k06jxjmPgnoNcysYvM3N70WlY93ISfg8ch2rNopHmcAPa6ZGhdhSlq6t5rkaksplmkAIuUCR9qnyWSuQGKfwt8zrqiuD7vstmDf45qbcgy7kqR12THb+NmQxqi8dbRl26B2784uoIi6p9qcXpUpVnAuu/HQ39KqyuaLBLCVEy/PJIXOxnmA1Rqv+AaRfbxEJ199Ny9EPR6n7cnUefVf2/jrNr98pEqg67o4QCG1wObVeUEfl+D3BJw8Jf/kxHoF6A8YlCSovL2u3iCIukB48NH52yhH+Ky4XIol1jK6W74soILsgnnSkJlREkRyAUg/mzOu2icnyAM7R9/MK1yolc2eIdzbiPYu7RkPBLrECFVXX2rD3OlC4RTjmUoj7nF+d0BWZgHTqCSUxJxTy09KcxwdfnpmB6C+rjcJSx7tR1PPovabGpFQmicZSWuSKmIUvkL0Rjr7I1YBVJZ0va76qqlwEhs/wUkY4uAVjFi6PgRRCwF5n2urrkV7OeRmYtoKHypHLCDbH0ztfkkMzRyd4BY9DOmcEARduJg69KojzGYsmqox/of/pxwi0AVaT4oSqtCzDEU7eDDel62sbzm5LxqV+OdzPzKdYo1+e2hQ01ZQ6z0K6KI8yr3g0jwKWGcp7na14hQ986sLl5FhaPNVL3WUsn1T/vP034Loa3tpdpdJXdK+RsKIAAAAAA=');
Function Calls
explode | 1 |
phpversion | 1 |
function_exists | 1 |
Stats
MD5 | 9cc8d9029329fb30b8c17601c0458865 |
Eval Count | 0 |
Decode Time | 126 ms |