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('4276AAAAC7C4F97BAAQAAAAXAAAABHAAAACABAAAAAAAAAD/h+79ExSLBg/KjfN23dgoO9fCCp92/yk4XhyxQnWWNtBQlGXmrLCtbBBpF/2WBixVCRK6f2CJadMyPegRY1DeRBfJqcXYRzLQQxb7NPzv0X7GdCVoBMm7FYFUhDtlufp0dTGU5wNaoStodl68HAbmalEAAADwCQAA3GaB7i2YdOeqyRLXJBjLeQ78MKos7U3ko7NThuPI//yDyQsXBsF7+PVZdn4pOGhoQ8tZoW2y3yhS+4e6QnQfd/ek/t4vZcz+cZA8mUppCeGiiexGaba87xb3lHvwDKxtbvGhK298Cdmpy6uOdWg7Nq0PSSNZ21IagrM0FbiIZOYzahtjNGDEsxwvBunPJh1esx25nQlXTHkH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kF/gjobc8JKKUKa92tpFIcGW5/T9wk/HTcjO7evS3OG6OoOsLKSyfNuQjT7dRH/4ogYZAJMhU+2PQlvbcAr3k38muLHDXVhpJRsfLe2nyRYUHrMJ0mDLfwrvsFg+C+TjrOA3K9mrnRs+BocVDN3Y9apMWF1elYp908wpee80kPiBIO9g62r/84NDu57+XgQFlzPhpZ4BcdWHXwL8jM+/z+ADoxBymXYrDpDxhQOld317PKhY410FXdcTdbrlfNVW+9aIXd+kbVzvt41+Ta2ViIZA6yeWadTkvH/nX7xkhehQudMMIMv0ttLYEt4MY2lfkOXLI/T3RCV4kKYPHykPQYztvweKMuTuCXVthmjmgPdl2CRYB5qT6y2ys8ON0CU0ez0GeXdr3hjfOhS4exaQIjvchs4MTrMyxB9fG7aawFVNya6jTygDPazEMCX3Ocxido4wYZ3lj4QY/3JxZXRj5naE7VuAyKJ6KvUKTPwquZ5z7pM2gZYgHtY0WLCeat6ovPs5U35ov189gPpIsUrAQiI5/8+BWSvO4nMnEkkklYCk3tVgxUBs2MVHaN4qRmNmI3tDXgIDVpNFD42wtqaVsZEGYu+g7Np6KEUTPfVY4Q+Hdji+2L7Syd1B6qrU3NLufsJVz6SCozCkKXYlWWI1ymvVjRHZmY7kSWIgvOrm4j1/Bn1SIIKOEcaRNOHfd+0e+kyVYpuDOk6PtLT1iEdFhrO+6aKozzLsh1Ilvsds02NmO+DZjsH0ZVe4T7iOneA9kOR1Wfh+grCAhUmgpMxBGrNmbemSys88o0B2jkawPQ/mkKx2ByL2OD5scAhkw0AI3CEkvx2QQlfvUccm6xh66ycDW+4ci3pxhKh9YjNWvlQ4QiWjWoT0BxqyUWJINmjlcdzDY9v8d66LwKpdc5ABQboBNIMALB6V/6U0b9hGybSkoomfSiqETxs0RIAV3ZUp49iuTWG3FgHNNMMdrf0WeQe9b8Gh9Y4JCeq4YoBu6IV1cilQ9Y/phroAAAAAAA=='); 
 ?>

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('4276AAAAC7C4F97BAAQAAAAXAAAABHAAAACABAAAAAAAAAD/h+79ExSLBg/KjfN23dgoO9fCCp92/yk4XhyxQnWWNtBQlGXmrLCtbBBpF/2WBixVCRK6f2CJadMyPegRY1DeRBfJqcXYRzLQQxb7NPzv0X7GdCVoBMm7FYFUhDtlufp0dTGU5wNaoStodl68HAbmalEAAADwCQAA3GaB7i2YdOeqyRLXJBjLeQ78MKos7U3ko7NThuPI//yDyQsXBsF7+PVZdn4pOGhoQ8tZoW2y3yhS+4e6QnQfd/ek/t4vZcz+cZA8mUppCeGiiexGaba87xb3lHvwDKxtbvGhK298Cdmpy6uOdWg7Nq0PSSNZ21IagrM0FbiIZOYzahtjNGDEsxwvBunPJh1esx25nQlXTHkHO3km51KcGWHJSK3kGa8NseC02BiBj7NAwhV+ZToN04QTrAIf4QeMIpAl97pcb+NxDtk9liWhdtyqcZGcGQjZrWetOpOeLKO00Hz6QoxRaNFuhpksLlWJCMN6LViwKPY7FxWa1y7awd7+QjTNv4IGgGolfAgSl4yOdM2mR1WMT+Z7aDJayowkvb2hla0kD9pPyz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zPhpZ4BcdWHXwL8jM+/z+ADoxBymXYrDpDxhQOld317PKhY410FXdcTdbrlfNVW+9aIXd+kbVzvt41+Ta2ViIZA6yeWadTkvH/nX7xkhehQudMMIMv0ttLYEt4MY2lfkOXLI/T3RCV4kKYPHykPQYztvweKMuTuCXVthmjmgPdl2CRYB5qT6y2ys8ON0CU0ez0GeXdr3hjfOhS4exaQIjvchs4MTrMyxB9fG7aawFVNya6jTygDPazEMCX3Ocxido4wYZ3lj4QY/3JxZXRj5naE7VuAyKJ6KvUKTPwquZ5z7pM2gZYgHtY0WLCeat6ovPs5U35ov189gPpIsUrAQiI5/8+BWSvO4nMnEkkklYCk3tVgxUBs2MVHaN4qRmNmI3tDXgIDVpNFD42wtqaVsZEGYu+g7Np6KEUTPfVY4Q+Hdji+2L7Syd1B6qrU3NLufsJVz6SCozCkKXYlWWI1ymvVjRHZmY7kSWIgvOrm4j1/Bn1SIIKOEcaRNOHfd+0e+kyVYpuDOk6PtLT1iEdFhrO+6aKozzLsh1Ilvsds02NmO+DZjsH0ZVe4T7iOneA9kOR1Wfh+grCAhUmgpMxBGrNmbemSys88o0B2jkawPQ/mkKx2ByL2OD5scAhkw0AI3CEkvx2QQlfvUccm6xh66ycDW+4ci3pxhKh9YjNWvlQ4QiWjWoT0BxqyUWJINmjlcdzDY9v8d66LwKpdc5ABQboBNIMALB6V/6U0b9hGybSkoomfSiqETxs0RIAV3ZUp49iuTWG3FgHNNMMdrf0WeQe9b8Gh9Y4JCeq4YoBu6IV1cilQ9Y/phroAAAAAAA==');

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 3797513185152e9af56d134bc1f9ad9b
Eval Count 0
Decode Time 85 ms