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')); ?><?php echo 'Please <a href="https://docs.keitaro.io/en/servermaintenance/server-upgrade.html#how-to-upgrade">upgrade</a> the server.'; ?><?php
exit();}}return sg_load('4A16FA81C93DB5F9AAQAAAAXAAAABGgAAACABAAAAAAAAAD/dMXvQ/Emq5HYDeJxvhLArH9Fwd7zh25vH6aNl8ZEl7iSS1+fq/r9gMCAYVC9KBU76gBhvqmognVTeq4vVlnaeCPYOL6eaLJ7B37cR8AZEG2rclVONIGPBgV32XwpFBhruKysGk3eXn5KAAAAiAMAAGUVbiT4refmS5Tn5bNT5dC2LsLI5pLau+AqWpTn3nnl48kEVeu0Slg+eMEVw8ZiKqmTXK4ZTbMMmUrbOZ9P/Ey4PqBHaaHpquF4P4k3wvlXpnJbvajNgZDwa4q148ZRWdzqvovoAVZJ54/kVNl7VmLGNZqewbc1uI3RjXXJJg35dBRwRsypXZNviXfuh3ZJiOjc+Cz6GoT41/YcVzyr9xDu65i+n6t8CSVXFicV7QIxYBpsllCGXLXGkpbCYmgZbDxOcBC7nZg3il29s9lKM50obQZEa0ShvTXfw4fSp+qF2/F71jgAimOoPuiAVBYb4UY4RItM+a5MJvsqmNtpOExBflS6LF7tE7oPOPh0QsPfRSt7LfGW0hzZR/mhrb+IgE3/9wQDJX2YdM0G/uR+pL+IwjGOc/sWSZZ6/t/4E9Y33zMmTeabed5yUosVGH21c52qETLEapkDbDyi1bdn/Xpqibe7Aw7XU41yMSkO/82q1axdhtecPLB2zgIPSxKzBJYySrvSgYo3amI/RVb3MpuyoivRdUrhjv8FqU00RIwwBQJGHXxrRdRZs4/klv2h1wWBaTwbvegoLzxk/+HW5GBy4ypkAU5OVn/AdMUmzj8bLBFhvl2+eqGoVJRWCDMW8J4EtRFw2wUCdU+ZU1nkfXlTmxkuCcAMkB8ktKn19N0Ly0eZypqFeB0NFnqnA7Lhk/XsQwDseSaMR7HCQCMTfnVC3rlCq9w/pdLdEt4Yxo+gG2mkczeG5bRwpPM4YKOy1jFyxB+jHGbQhnSva4whP2Vgrv/PpM6CKkpPeVArtO3aoTYaDEwnSJ9aGTPTj72WAirPQ2QSC4CkucAKNUEAALzfgHk5b8YI26mX+J6GKSmCkDmNRyFLg5eF+nbcipRK85XK3AJgEFYJuEPGAcsWmWyVzBW8yvzKQzmXRT6hJUlKVXxWVjLoglik7pMG4vYoaKwPUuKTYuJ6PKRGoUMzSVT/y3mRNO+Mec/m90P+QuhhUhebgna7jxHOYJf+uLR40O27SrYdPDP91Obs8tagJ4PWIXbTAQpuJPI0RsSD7O/iOVjFPEKfY4ib3Fpj4FGp/900vm0ZJaTes4Tnpc1ieKHcmBJQ4VEvHc2VEbSTua3VkajNy2FwZCo2WSia7lMSR6l8gEWY9/+WqlLETmJhpD6Eshz9RyzZYRUjZehDadiOC+Od1Ar5w6QAAAAA');
?>
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')); ?><?php echo 'Please <a href="https://docs.keitaro.io/en/servermaintenance/server-upgrade.html#how-to-upgrade">upgrade</a> the server.'; ?><?php
exit();}}return sg_load('4A16FA81C93DB5F9AAQAAAAXAAAABGgAAACABAAAAAAAAAD/dMXvQ/Emq5HYDeJxvhLArH9Fwd7zh25vH6aNl8ZEl7iSS1+fq/r9gMCAYVC9KBU76gBhvqmognVTeq4vVlnaeCPYOL6eaLJ7B37cR8AZEG2rclVONIGPBgV32XwpFBhruKysGk3eXn5KAAAAiAMAAGUVbiT4refmS5Tn5bNT5dC2LsLI5pLau+AqWpTn3nnl48kEVeu0Slg+eMEVw8ZiKqmTXK4ZTbMMmUrbOZ9P/Ey4PqBHaaHpquF4P4k3wvlXpnJbvajNgZDwa4q148ZRWdzqvovoAVZJ54/kVNl7VmLGNZqewbc1uI3RjXXJJg35dBRwRsypXZNviXfuh3ZJiOjc+Cz6GoT41/YcVzyr9xDu65i+n6t8CSVXFicV7QIxYBpsllCGXLXGkpbCYmgZbDxOcBC7nZg3il29s9lKM50obQZEa0ShvTXfw4fSp+qF2/F71jgAimOoPuiAVBYb4UY4RItM+a5MJvsqmNtpOExBflS6LF7tE7oPOPh0QsPfRSt7LfGW0hzZR/mhrb+IgE3/9wQDJX2YdM0G/uR+pL+IwjGOc/sWSZZ6/t/4E9Y33zMmTeabed5yUosVGH21c52qETLEapkDbDyi1bdn/Xpqibe7Aw7XU41yMSkO/82q1axdhtecPLB2zgIPSxKzBJYySrvSgYo3amI/RVb3MpuyoivRdUrhjv8FqU00RIwwBQJGHXxrRdRZs4/klv2h1wWBaTwbvegoLzxk/+HW5GBy4ypkAU5OVn/AdMUmzj8bLBFhvl2+eqGoVJRWCDMW8J4EtRFw2wUCdU+ZU1nkfXlTmxkuCcAMkB8ktKn19N0Ly0eZypqFeB0NFnqnA7Lhk/XsQwDseSaMR7HCQCMTfnVC3rlCq9w/pdLdEt4Yxo+gG2mkczeG5bRwpPM4YKOy1jFyxB+jHGbQhnSva4whP2Vgrv/PpM6CKkpPeVArtO3aoTYaDEwnSJ9aGTPTj72WAirPQ2QSC4CkucAKNUEAALzfgHk5b8YI26mX+J6GKSmCkDmNRyFLg5eF+nbcipRK85XK3AJgEFYJuEPGAcsWmWyVzBW8yvzKQzmXRT6hJUlKVXxWVjLoglik7pMG4vYoaKwPUuKTYuJ6PKRGoUMzSVT/y3mRNO+Mec/m90P+QuhhUhebgna7jxHOYJf+uLR40O27SrYdPDP91Obs8tagJ4PWIXbTAQpuJPI0RsSD7O/iOVjFPEKfY4ib3Fpj4FGp/900vm0ZJaTes4Tnpc1ieKHcmBJQ4VEvHc2VEbSTua3VkajNy2FwZCo2WSia7lMSR6l8gEWY9/+WqlLETmJhpD6Eshz9RyzZYRUjZehDadiOC+Od1Ar5w6QAAAAA');
Function Calls
explode | 1 |
phpversion | 1 |
function_exists | 1 |
Stats
MD5 | d631ec6d6a8620d85f284758c9b29b81 |
Eval Count | 0 |
Decode Time | 114 ms |