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/MnRkB571XLqAS+v2nMzsCHIcn45Dv3uBLJH4UTgsgl1uaoRJ3VKawYcF1TMH+u38uCwwoSdRRLg8mRp2345oL/StYv99JYen8FhguyEUCkYGJRFjmNG9x5Jbcq8stqqspk+G1VpTjdpKAAAAEAMAAClo5YMdnXdtdE83NHIdtoH9L4I2pYZLx9uie43LjMeiAC/V543q6vzCyDsdIdTwoXqEzzGrqg2M6jjnuN+0VfRB8/VquNLL6I2QKjRVHOE0b+K04rw+IgIx5WHEghlnY6/4ONypz/Jocn4u1y/fdQ+gzoa/VZ64ESQTlW8pc+amPSZm2+VZOPv7J5KEsNLpTLqRyA+T2PngvYeRg6y6g9Q3e0GK95hcv0t5PW3Mq+2DA/FG1ccNOw2ZRahDPgc3GzLpjm6Fx6CYmdUM0WjAoxknV/Nl5fJXGntBQVxgiVEoQ2eW0ZE1xShnxNl1r00S3wFokWy1tl/deVlPpOK1L8nShncMgkCp3ORT9coggKklcH4F4khUQet/eV/bS30D83H7hMCMYUcfOuVlF7Ec9Nf4WRqAvtk8pFbdF3VrSY5Z4gvzC7Ve8T2q1aqyOY/YAPHGhF1e4foAAqE5yp6j/zX9J0QT/NHFZFopdmWM/o4QyOfmNBw6LdCDGpD0wm0wK1tkapFcur4r6aQMbVajoYHkrY0+2oFL/qjXSwGOOIKGUYdKUWHsrepEjjQXaepdC7wLzMCmlIKfdaMvIesTiIcjxh2oCxx0UdG5BHbHlIxHzyUHe9rCtwgI3dZ/OWUYPrq16BKT0BSk4oFK0VQ9yXv/hbXTbtIb+VFqAkzJoyndpeeHI1cVmXSofIgCQfXeuFZf8KyVkuzFSXOfLqAKH4+czFDXUMLAoh7KX0ktgF5C5702oG2iBmnSCy71mPvOiuZ8/t1r/IjT+QxqaFu/urjSgQVtDYczkNpho1ukNx/2/tG1TIZzkvMkUsd6q4SE7v/UFA4d3wHPfnJ9itUPAWeYX5xyC8gMDPG3Ug8Y75ySIv7ZmoBzeJBN7j9K2QDGZVB13yFo2zJfpUgEe8P9M8Hl2TptpXyCcOiQa6g301/5YoEGtCPciLIwo4a0IQHjTXeireInTnUxWJ5RRPiSBZuhPkChMKF5TitEqCkJnLXGGFsVFqaOW7LiwYWqdQzUSj/+47d3TR0WhFpdDNQcj80AAAAA');
?>
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/MnRkB571XLqAS+v2nMzsCHIcn45Dv3uBLJH4UTgsgl1uaoRJ3VKawYcF1TMH+u38uCwwoSdRRLg8mRp2345oL/StYv99JYen8FhguyEUCkYGJRFjmNG9x5Jbcq8stqqspk+G1VpTjdpKAAAAEAMAAClo5YMdnXdtdE83NHIdtoH9L4I2pYZLx9uie43LjMeiAC/V543q6vzCyDsdIdTwoXqEzzGrqg2M6jjnuN+0VfRB8/VquNLL6I2QKjRVHOE0b+K04rw+IgIx5WHEghlnY6/4ONypz/Jocn4u1y/fdQ+gzoa/VZ64ESQTlW8pc+amPSZm2+VZOPv7J5KEsNLpTLqRyA+T2PngvYeRg6y6g9Q3e0GK95hcv0t5PW3Mq+2DA/FG1ccNOw2ZRahDPgc3GzLpjm6Fx6CYmdUM0WjAoxknV/Nl5fJXGntBQVxgiVEoQ2eW0ZE1xShnxNl1r00S3wFokWy1tl/deVlPpOK1L8nShncMgkCp3ORT9coggKklcH4F4khUQet/eV/bS30D83H7hMCMYUcfOuVlF7Ec9Nf4WRqAvtk8pFbdF3VrSY5Z4gvzC7Ve8T2q1aqyOY/YAPHGhF1e4foAAqE5yp6j/zX9J0QT/NHFZFopdmWM/o4QyOfmNBw6LdCDGpD0wm0wK1tkapFcur4r6aQMbVajoYHkrY0+2oFL/qjXSwGOOIKGUYdKUWHsrepEjjQXaepdC7wLzMCmlIKfdaMvIesTiIcjxh2oCxx0UdG5BHbHlIxHzyUHe9rCtwgI3dZ/OWUYPrq16BKT0BSk4oFK0VQ9yXv/hbXTbtIb+VFqAkzJoyndpeeHI1cVmXSofIgCQfXeuFZf8KyVkuzFSXOfLqAKH4+czFDXUMLAoh7KX0ktgF5C5702oG2iBmnSCy71mPvOiuZ8/t1r/IjT+QxqaFu/urjSgQVtDYczkNpho1ukNx/2/tG1TIZzkvMkUsd6q4SE7v/UFA4d3wHPfnJ9itUPAWeYX5xyC8gMDPG3Ug8Y75ySIv7ZmoBzeJBN7j9K2QDGZVB13yFo2zJfpUgEe8P9M8Hl2TptpXyCcOiQa6g301/5YoEGtCPciLIwo4a0IQHjTXeireInTnUxWJ5RRPiSBZuhPkChMKF5TitEqCkJnLXGGFsVFqaOW7LiwYWqdQzUSj/+47d3TR0WhFpdDNQcj80AAAAA');
Function Calls
explode | 1 |
phpversion | 1 |
function_exists | 1 |
Stats
MD5 | 9cbf7ff22f8739ab9915e4e47d88f6e7 |
Eval Count | 0 |
Decode Time | 91 ms |