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('DE330C844756C5B4AAQAAAAXAAAABIAAAACABAAAAAAAAAD/hjEBVA2BUxzz2m+hZoPQcsR5WPPp2xpLmffzOF8ibmy6KFVYtYhlbvdzvL37HpmEfpWkpUyYNLXZw7utpcC3cuqPyHLKQBCwtK7a6l82SQ2CA7oA+T0WbLIxvp9e4ozT/N95gA/CiPfRcBeLn+S6ZR5MI13qSaXy2yeZopR2IfoIAAAA+AkAAHqZjaqphouHsPXzZmY7VbRsId3GBJY1Hmtcrg0Z342smTbjEC8n5hoHXX7q5s7ZwCEki4jZ4R2dPK6aRzNtOP/wNotDh5N2e1IG6RZFJ9dCBVLme7+yuf7O3Gch0SOrzMPNBRYCyd0B+5QH69I+WbWaaivECKd3wHGbBjdDg20+3DaQv0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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('DE330C844756C5B4AAQAAAAXAAAABIAAAACABAAAAAAAAAD/hjEBVA2BUxzz2m+hZoPQcsR5WPPp2xpLmffzOF8ibmy6KFVYtYhlbvdzvL37HpmEfpWkpUyYNLXZw7utpcC3cuqPyHLKQBCwtK7a6l82SQ2CA7oA+T0WbLIxvp9e4ozT/N95gA/CiPfRcBeLn+S6ZR5MI13qSaXy2yeZopR2IfoIAAAA+AkAAHqZjaqphouHsPXzZmY7VbRsId3GBJY1Hmtcrg0Z342smTbjEC8n5hoHXX7q5s7ZwCEki4jZ4R2dPK6aRzNtOP/wNotDh5N2e1IG6RZFJ9dCBVLme7+yuf7O3Gch0SOrzMPNBRYCyd0B+5QH69I+WbWaaivECKd3wHGbBjdDg20+3DaQv0GSzXM9vMs0rl31bfx2h36DYhPWmMMOm87jONmFYIpJZkPRE2RMgQRNUtBnTepivFo9MBOCbb0gwjQ5f6/FWMB+26j5aipaswkgo1k2OinTsfJo+2AB9XcLzLxJcKkAiSNVZc1oLx5EENaiXgCL7Btzb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UQWBheT0UCUx3pZVLtGnHFe4EBOcO8qOSxHApG24Mgzk/yrTv/X7ufw3p6hOgJt3QwjKg//GeGtlAOiI3fxqmMLU6Boq+h45NDqObTbJ2BAoiEIJ6DKvrdx7nweHvpSLgTwihmfrgFGJRwyqiqc+tJy3eHywdqfRrooC+1qgEGDmO+kWMTt/qpSBB3uHqZTD6QvAlRyyNIE8CFuX01YWW9vTDNMDQb60ETsdBiX3CQ2G3v6nj0dlX9GyQgw+O3badQ88FmDIwHcHlT67coU2wEl39VCZQkTOilOV1e0yc6HMP3dKcnRLjx8RARhVRfTHqyG4t7+ggpTiPqe/moyfnp+yu7FUZ4Wo3gNYg7BKpBH/V22fKqACmn74pqhM1ZGxB6EW6yM2sntG4+RRXwpSoA86AYcLd3zMJehLoN/e0+vfjUyP/3S7sB4iWOimvyMeH1U6d507D9jQmMn4x+e8MjLP5o02s6A9/L8w67p9T3RVb1zXQewVWRo78p4JuZzXjRqilektzDAlmxjKBFOs2c1p1yZBSM0Y0cOYEua4iNsNpgrkAgNFB9Tp8e5oHoXCJG8Hm9Iagf4edYkS6lYt1GKlZZQJT6+SQENIUlqEXkWbxBaBepW0PS1XOPZycR2ASwaZBEEZytF63ho2jTBte0oKnWdyFembPoJ/Xp1P6F9rugnP/TcTJq1XpKYk+g2pchcxynq7RQmWr9crXvcuu97YBojoTye65WfpO3mhjOcIRDUuVzO8twJw2leMs6dN3CRwndUcypWjYDnMlJvcRpzIShpe4YQC2EPyWdixFCmVk1If4G2LkXADnF6wHhWD/MxltIyMtC7LxurKXjil6XF2ndrUI3HHTGdLtuEqfcRVwvs0AAOMGhzsBhwtdyOQUMf323WVIccVzNnxK2H8WsGoSRyAAAAAA==');
Function Calls
explode | 1 |
phpversion | 1 |
function_exists | 1 |
Stats
MD5 | 3e58651e37d7d94a204d33e5ba4cd8cd |
Eval Count | 0 |
Decode Time | 91 ms |