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('99D4AD8A4756BA46AAQAAAAXAAAABJgAAACABAAAAAAAAAD/EK/CzxXJALewlHI4DTK5rN4KBgNeJnMv6qvpbg+ouz/h/9qBWw06RAK9o/2d149onkmiXs0WTW96SINjeDCgscvEe1EngAkpf4cGzcikNhcDUXPF3NaE07c1c4aWtwPgPxQWMbwJfGyjbz3hyV0DJilInkjRq/ZB+hhFObH5TLvnRjCP68luICbmYeMPnvMR5kczONRlA+c1AAAA+AAAAPoAnEB5EdJsas5EI68N1IVVbUTkpmU7jtQdJYNtvYqGsX0bXbpduwcb9hpAvjSPU/TQTj+BMA1/M6a/qnXDo6h1lmzmSNGC+hMRjHZAEPeT7zaJIE6+yWLXIV0YKFEV6GheuS3/fKxbnEEUOx4Fzm9+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OjWKMC77lsSsabXi8Hz8BP4N6CT6eHeJRfxBy3+wQtJA24SGJfQITL2V1LOR18VQatVZP47J8O8F/weiY+JIC8e5ea713Tnrt5wiXPG2Rz87fVlzBfF+zceXRvhSLYLAvhNW/bBAbsrGuwpuE+1CT09kJktrqJ3ufggyHRG5zS1DDe5Rp8ujGMNQEbmAuUREygp80NlZLhGbY4oRlbizM3GJQHbxXjlITrGGNUfuUmKYPzpM4olccm5myqalXneVBJXU3+5mzX199IxD+PymEl5I6cLkLDdRdsQV2Bm8iZi6owcAAAD4AAAAIQuKKVil+E1dHhIswIuxBMc+q+4RdDI2cGi3VoCYC1DMxlj0MWNtU5VJGMoO8uQD3TQbUYwjKfGRKsieD5K3YoeLHTGpH6WrXmDiPxLbHVnc+hHmeMm6vVE3yTac4j+tE3Ueea0lt6NAVQFmHMMqAHvd/0k8Sbs/+f78+5Sr8+YxxQwYWGyZ1FOSeXVM3SFOJhpz9SfMj66FOGMN8zbk6ERK7AEaD9XJf4i1GGC8DCu7VYq1aGjaaXI0zs5GJSl6kEbxBJTSBUtraiVPf9jwfRW4U3CrjfZrzUnf0ZeRaQaZ9rTiM5/VU8YBBKh5n9AwusRmpBzwq7dHAAAA+AAAAAio18Oa4OpNBOV/8h7gevDhKV0NKEEQ0ByzgViiY5Yg3a8Dn6pkd73NLdsMSUD7lSYxa6AOf2j4/ZgjFLXWwbXtLCCjoFhC5rct5EK6wZEoUBmw9iDWKSxjcT/npGs0WjK3PnOJRcP7YZo51OUwFk0nZcwCaUxWeXKcxYW1ju8OxCmtu6YfTV2te7xsulPm5EK/KRRo3FyEcVOtf+XGXVNxD0Sut/C+NeaRXb5swE+2v+uuRMvHepyG6E30V7v7S4EyGRv5nLLfSJ9noVB8VAZmSPlhUEzTFTF/9LVRHRt9nwnVZ5W08VSif4pifztar+4IDd2ZKCmjAAAAAA=='); 
 ?>

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('99D4AD8A4756BA46AAQAAAAXAAAABJgAAACABAAAAAAAAAD/EK/CzxXJALewlHI4DTK5rN4KBgNeJnMv6qvpbg+ouz/h/9qBWw06RAK9o/2d149onkmiXs0WTW96SINjeDCgscvEe1EngAkpf4cGzcikNhcDUXPF3NaE07c1c4aWtwPgPxQWMbwJfGyjbz3hyV0DJilInkjRq/ZB+hhFObH5TLvnRjCP68luICbmYeMPnvMR5kczONRlA+c1AAAA+AAAAPoAnEB5EdJsas5EI68N1IVVbUTkpmU7jtQdJYNtvYqGsX0bXbpduwcb9hpAvjSPU/TQTj+BMA1/M6a/qnXDo6h1lmzmSNGC+hMRjHZAEPeT7zaJIE6+yWLXIV0YKFEV6GheuS3/fKxbnEEUOx4Fzm9+4wdWpO6seWx/MViDgw8vUGHn5VQ9TuOzDi6wXgcd+QCWoc8b5I0VjV76P3VOYqGjpz5U9cLgAX8oOqAP8CIi/+KzqhrPzhk48lHMohm2NRA8SFPCqmlmClnJRy2ZiBsiI+Vqypjre4J8ybe3Ran8Mj69XGC5YqsO8TdL9SDNIMRyXYC+4OChNgAAACgBAAAlVRaewmJD8sJu7fP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3GJQHbxXjlITrGGNUfuUmKYPzpM4olccm5myqalXneVBJXU3+5mzX199IxD+PymEl5I6cLkLDdRdsQV2Bm8iZi6owcAAAD4AAAAIQuKKVil+E1dHhIswIuxBMc+q+4RdDI2cGi3VoCYC1DMxlj0MWNtU5VJGMoO8uQD3TQbUYwjKfGRKsieD5K3YoeLHTGpH6WrXmDiPxLbHVnc+hHmeMm6vVE3yTac4j+tE3Ueea0lt6NAVQFmHMMqAHvd/0k8Sbs/+f78+5Sr8+YxxQwYWGyZ1FOSeXVM3SFOJhpz9SfMj66FOGMN8zbk6ERK7AEaD9XJf4i1GGC8DCu7VYq1aGjaaXI0zs5GJSl6kEbxBJTSBUtraiVPf9jwfRW4U3CrjfZrzUnf0ZeRaQaZ9rTiM5/VU8YBBKh5n9AwusRmpBzwq7dHAAAA+AAAAAio18Oa4OpNBOV/8h7gevDhKV0NKEEQ0ByzgViiY5Yg3a8Dn6pkd73NLdsMSUD7lSYxa6AOf2j4/ZgjFLXWwbXtLCCjoFhC5rct5EK6wZEoUBmw9iDWKSxjcT/npGs0WjK3PnOJRcP7YZo51OUwFk0nZcwCaUxWeXKcxYW1ju8OxCmtu6YfTV2te7xsulPm5EK/KRRo3FyEcVOtf+XGXVNxD0Sut/C+NeaRXb5swE+2v+uuRMvHepyG6E30V7v7S4EyGRv5nLLfSJ9noVB8VAZmSPlhUEzTFTF/9LVRHRt9nwnVZ5W08VSif4pifztar+4IDd2ZKCmjAAAAAA==');

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 c4e1a7d80f2c15fefac82d363585681b
Eval Count 0
Decode Time 107 ms