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\x4f\x42A\x4cS"}["a\x69pb\x64\x73\x79\x77\x6dq"]="\x63\x6fn\x6e";${"G\x4c..
Decoded Output download
<?php ${"GLOBALS"}["aipbdsywmq"]="conn";${"GLOBALS"}["xlplgw"]="insert_query";${"GLOBALS"}["nrunjqmjd"]="tmp_name";${"GLOBALS"}["sglrieccwvqr"]="allow";${"GLOBALS"}["nubnepmdob"]="filetype";${"GLOBALS"}["uyursfu"]="target_dir";${"GLOBALS"}["uelgcx"]="target_file";${"GLOBALS"}["smhmrio"]="conn";error_reporting(1);${${"GLOBALS"}["smhmrio"]}=mysqli_connect("localhost","root","","db");if(isset($_POST["submit"])){${"GLOBALS"}["dciphctt"]="firstname";$cpmfyld="gender";$ntwqiu="lastname";$edckotk="img";$tochqbmvpl="img";${"GLOBALS"}["srvjpmysu"]="tmp_name";${"GLOBALS"}["qqrxjlirv"]="allow";${${"GLOBALS"}["dciphctt"]}=$_POST["firstname"];$trhvxuo="fathername";$unmjrctxgcq="filetype";${$ntwqiu}=$_POST["lastname"];${"GLOBALS"}["oubvvcfnfjsm"]="target_dir";${$trhvxuo}=$_POST["Fathername"];${$cpmfyld}=$_POST["gender"];${${"GLOBALS"}["oubvvcfnfjsm"]}="images/";${$tochqbmvpl}=$_FILES["img"]["name"];${${"GLOBALS"}["srvjpmysu"]}=$_FILES["img"]["tmp_name"];${${"GLOBALS"}["uelgcx"]}=${${"GLOBALS"}["uyursfu"]}.basename(${$edckotk});${$unmjrctxgcq}=$_FILES["img"]["type"];${${"GLOBALS"}["qqrxjlirv"]}=array("image/jpeg","image/png");if(!in_array(${${"GLOBALS"}["nubnepmdob"]},${${"GLOBALS"}["sglrieccwvqr"]})){}else{$khcjtrpycv="target_file";if(move_uploaded_file(${${"GLOBALS"}["nrunjqmjd"]},${$khcjtrpycv})){${${"GLOBALS"}["xlplgw"]}="INSERT INTO profile(firstname,lastname,fathername,gender,image) VALUES ('$firstname','$lastname','$fathername','$gender','$img')";if(mysqli_query(${${"GLOBALS"}["aipbdsywmq"]},${${"GLOBALS"}["xlplgw"]})){echo" insert ";}else{echo"not insert";}}}}echo "<!DOCTYPE html>
<html>
<head>
<title>info</title>
</head>
<body>
<div align="center">
<form method="post\" enctype=\"multipart/form-data\">
<table style="border: dotted;background-color: lightblue;">
<tr>
<td>FIrstname</td>
<td><input type="text\" name=\"firstname\"></td>
</tr>
<tr>
<td>lastname</td>
<td><input type="text" name="lastname"></td>
</tr>
<tr>
<td>Fathername</td>
<td><input type="text\" name="Fathername"></td>
</tr>
<tr>
<td>Gender</td>
<td><input type=\"radio\" name=\"gender" id="case1" value=\"Male"> Male<input type="radio" name="gender" id="case2" value="Female\"> Female</td>
</tr>
<tr>
<td>Image</td>
<td><input type="file" name="img"></td>
</tr>
<tr>
<th colspan=\"2\"><input type="submit\" name=\"submit\">
<input type="button" name="display\" value="Display" onclick="window.location.href='pro.php'\"></th>
</tr>
</table>
</div>
</form>
</body>
</html>
";
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4f\x42A\x4cS"}["a\x69pb\x64\x73\x79\x77\x6dq"]="\x63\x6fn\x6e";${"G\x4cO\x42ALS"}["x\x6c\x70\x6cg\x77"]="i\x6e\x73e\x72t\x5f\x71\x75\x65ry";${"\x47LO\x42A\x4cS"}["\x6eru\x6e\x6aq\x6d\x6a\x64"]="tm\x70\x5f\x6e\x61\x6de";${"G\x4c\x4fB\x41\x4cS"}["\x73\x67lr\x69\x65\x63\x63\x77\x76\x71r"]="\x61\x6c\x6cow";${"\x47L\x4f\x42\x41L\x53"}["\x6e\x75\x62n\x65pmd\x6f\x62"]="\x66\x69l\x65\x74\x79p\x65";${"\x47L\x4fBA\x4cS"}["\x75y\x75rsfu"]="t\x61\x72ge\x74\x5fdi\x72";${"\x47L\x4f\x42\x41\x4c\x53"}["\x75\x65l\x67cx"]="\x74\x61\x72get\x5f\x66i\x6ce";${"GL\x4f\x42AL\x53"}["s\x6dh\x6dr\x69\x6f"]="\x63\x6fn\x6e";error_reporting(1);${${"GL\x4f\x42AL\x53"}["smh\x6dr\x69\x6f"]}=mysqli_connect("local\x68\x6f\x73t","\x72o\x6ft","","db");if(isset($_POST["\x73\x75bmit"])){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64\x63i\x70\x68\x63\x74\x74"]="\x66\x69\x72\x73\x74\x6ea\x6d\x65";$cpmfyld="\x67e\x6e\x64\x65r";$ntwqiu="\x6c\x61\x73tname";$edckotk="\x69\x6d\x67";$tochqbmvpl="\x69\x6dg";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x73\x72\x76j\x70m\x79su"]="tmp_\x6ea\x6d\x65";${"\x47\x4c\x4f\x42\x41L\x53"}["\x71q\x72\x78\x6al\x69\x72\x76"]="al\x6c\x6f\x77";${${"\x47\x4c\x4fB\x41L\x53"}["\x64ci\x70hctt"]}=$_POST["\x66i\x72\x73t\x6e\x61\x6d\x65"];$trhvxuo="f\x61the\x72\x6e\x61\x6d\x65";$unmjrctxgcq="\x66i\x6c\x65\x74\x79\x70\x65";${$ntwqiu}=$_POST["l\x61\x73\x74\x6e\x61\x6de"];${"\x47L\x4fB\x41\x4c\x53"}["\x6f\x75b\x76\x76\x63f\x6e\x66\x6asm"]="\x74a\x72\x67\x65t_d\x69r";${$trhvxuo}=$_POST["\x46\x61\x74\x68\x65\x72\x6e\x61me"];${$cpmfyld}=$_POST["g\x65\x6e\x64e\x72"];${${"GL\x4f\x42\x41\x4c\x53"}["\x6f\x75b\x76\x76c\x66\x6ef\x6as\x6d"]}="\x69\x6dag\x65\x73/";${$tochqbmvpl}=$_FILES["i\x6d\x67"]["\x6ea\x6d\x65"];${${"GL\x4f\x42\x41\x4cS"}["sr\x76j\x70\x6d\x79\x73u"]}=$_FILES["\x69\x6dg"]["\x74mp_\x6e\x61m\x65"];${${"\x47\x4c\x4f\x42\x41\x4cS"}["ue\x6c\x67c\x78"]}=${${"G\x4c\x4fB\x41\x4c\x53"}["\x75y\x75r\x73\x66u"]}.basename(${$edckotk});${$unmjrctxgcq}=$_FILES["i\x6d\x67"]["\x74\x79\x70e"];${${"GL\x4f\x42\x41\x4c\x53"}["q\x71\x72\x78\x6a\x6ci\x72v"]}=array("\x69\x6d\x61ge/\x6ap\x65\x67","\x69mag\x65/\x70\x6e\x67");if(!in_array(${${"GLO\x42ALS"}["n\x75\x62n\x65pm\x64ob"]},${${"\x47\x4cOB\x41\x4c\x53"}["sg\x6c\x72\x69ec\x63\x77\x76\x71r"]})){}else{$khcjtrpycv="\x74\x61r\x67\x65\x74_\x66\x69\x6c\x65";if(move_uploaded_file(${${"G\x4c\x4f\x42A\x4c\x53"}["nru\x6e\x6a\x71mj\x64"]},${$khcjtrpycv})){${${"G\x4c\x4fBA\x4c\x53"}["x\x6cpl\x67w"]}="\x49N\x53\x45RT\x20I\x4eTO\x20\x70r\x6ff\x69\x6c\x65(f\x69\x72s\x74\x6e\x61\x6d\x65,\x6c\x61s\x74nam\x65,\x66\x61\x74\x68er\x6e\x61\x6d\x65,gen\x64\x65\x72,\x69m\x61\x67e) V\x41LUES\x20(\x27$firstname\x27,\x27$lastname\x27,'$fathername\x27,'$gender\x27,\x27$img')";if(mysqli_query(${${"GLO\x42\x41L\x53"}["ai\x70b\x64\x73\x79\x77\x6d\x71"]},${${"\x47\x4cOB\x41\x4c\x53"}["\x78lp\x6c\x67\x77"]})){echo" \x69nsert\x20";}else{echo"no\x74 \x69nser\x74";}}}}echo "\x3c!DO\x43TY\x50E \x68t\x6dl>\n<\x68tml\x3e\n<\x68\x65ad>\n\t<ti\x74l\x65>i\x6e\x66\x6f</\x74i\x74le\x3e\n\x3c/he\x61\x64>\n<bo\x64\x79>\n\t\t\t\x3cd\x69\x76 \x61\x6cign=\x22ce\x6ete\x72\x22\x3e\n\t\x3c\x66or\x6d m\x65\x74h\x6f\x64\x3d\x22p\x6fst\"\x20en\x63\x74\x79\x70\x65\x3d\"\x6du\x6ct\x69p\x61\x72t/fo\x72m-\x64at\x61\">\n\n\t<t\x61b\x6ce\x20\x73t\x79l\x65=\x22\x62o\x72\x64\x65\x72: do\x74ted\x3b\x62a\x63\x6b\x67ro\x75\x6e\x64-col\x6f\x72:\x20\x6c\x69ghtb\x6cu\x65\x3b\x22>\n\t\t\x3ctr>\n\t\t\t\x3c\x74d>F\x49r\x73\x74\x6eame</\x74d\x3e\t\t\t\n\t\t\t\x3ctd\x3e<\x69npu\x74 \x74\x79\x70e=\x22\x74e\x78t\"\x20\x6e\x61me=\"f\x69\x72\x73\x74\x6e\x61\x6d\x65\"></\x74\x64>\n\t\t\x3c/t\x72>\n\t\t\x3c\x74r\x3e\n\t\t\t\x3c\x74\x64>las\x74na\x6de</\x74\x64>\t\t\t\n\t\t\t<td>\x3c\x69\x6e\x70\x75\x74 t\x79\x70\x65\x3d\x22\x74ex\x74\x22\x20\x6e\x61me=\x22la\x73tn\x61\x6de\x22>\x3c/\x74\x64\x3e\n\t\t\x3c/\x74\x72>\n\t\t<tr>\n\t\t\t\x3c\x74\x64>\x46athern\x61me</t\x64>\t\t\t\n\t\t\t<t\x64\x3e\x3c\x69nput \x74\x79pe=\x22\x74\x65\x78t\" \x6ea\x6d\x65\x3d\x22F\x61\x74\x68\x65r\x6ea\x6d\x65\x22></t\x64>\n\t\t</tr\x3e\n\t\t\x3c\x74\x72>\n\t\t\t\x3c\x74\x64>\x47\x65n\x64er</\x74d\x3e\t\t\t\n\t\t\t<td\x3e\x3c\x69\x6epu\x74\x20ty\x70\x65=\"ra\x64io\"\x20n\x61\x6d\x65\x3d\"gen\x64er\x22 \x69d\x3d\x22c\x61\x73\x65\x31\x22\x20v\x61l\x75e\x3d\"M\x61\x6ce\x22>\x20\x4d\x61\x6c\x65\x3ci\x6ep\x75t typ\x65=\x22\x72adi\x6f\x22\x20nam\x65=\x22\x67\x65n\x64er\x22\x20i\x64\x3d\x22\x63\x61\x73\x652\x22 va\x6c\x75e\x3d\x22\x46e\x6dale\">\x20\x46e\x6d\x61l\x65</\x74d\x3e\n\t\t</t\x72\x3e\n\t\t<\x74r>\n\t\t\t\x3ctd>I\x6d\x61\x67e\x3c/\x74\x64\x3e\t\t\t\n\t\t\t\x3ct\x64>\x3c\x69\x6e\x70u\x74\x20\x74yp\x65=\x22\x66\x69le\x22\x20\x6e\x61m\x65=\x22\x69m\x67\x22></\x74\x64\x3e\n\t\t\x3c/t\x72>\n\t\t<t\x72\x3e\n\t\t\t\n\t\t\t\x3cth\x20\x63\x6fl\x73\x70\x61\x6e=\"2\"\x3e<\x69\x6epu\x74\x20typ\x65\x3d\x22\x73ubm\x69t\"\x20\x6e\x61m\x65\x3d\"\x73u\x62mit\">\n\t\t\t\x3cinput\x20\x74ype=\x22bu\x74t\x6fn\x22\x20n\x61me=\x22di\x73play\" \x76\x61\x6cu\x65=\x22\x44\x69\x73\x70\x6c\x61\x79\x22 \x6f\x6e\x63\x6c\x69ck=\x22\x77i\x6ed\x6fw\x2e\x6c\x6f\x63\x61t\x69\x6f\x6e.\x68r\x65\x66=\x27\x70ro\x2ep\x68\x70\x27\"\x3e</\x74h>\n\t\t\x3c/\x74\x72>\n\t</t\x61b\x6ce\x3e\n\x3c/\x64\x69\x76>\n\x3c/fo\x72\x6d\x3e\n</\x62o\x64\x79\x3e\n\x3c/\x68\x74m\x6c\x3e\n";
?>
Function Calls
| mysqli_connect | 1 |
| error_reporting | 1 |
Stats
| MD5 | 766a1ceda8e70d77516eba341b404322 |
| Eval Count | 0 |
| Decode Time | 96 ms |