Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if ($variable === "\143\x68\141\x6c\154\145\156\147\145\146\157\x78") { echo "\x2d\x20\12..

Decoded Output download

<?  if ($variable === "challengefox") { 
echo "- Si ce texte apparait, tu valide la premiere etape! <br>"; 
if (isset($_GET["challenge_fox"])) { 
echo "- Deuxieme etape valide! <br>"; 
if (hash("md2", $_GET["variable2"]) == "0") { 
echo "- Troisieme etape valide! <br>"; 
if (hash("sha1", $_GET["variable3"]) == $_GET["variable3"]) { 
echo "- Okay, voici le flag : " . $secretflag . "<br>"; 
} 
} 
} 
} ?>

Did this file decode correctly?

Original Code

if ($variable === "\143\x68\141\x6c\154\145\156\147\145\146\157\x78") {
echo "\x2d\x20\123\x69\40\143\145\x20\x74\x65\170\164\x65\x20\x61\x70\x70\x61\x72\x61\151\164\54\x20\x74\165\40\166\x61\154\x69\x64\x65\40\x6c\x61\x20\160\x72\x65\x6d\151\x65\162\x65\40\x65\x74\141\x70\x65\41\40\74\x62\x72\76";
if (isset($_GET["\143\150\x61\x6c\154\x65\x6e\147\x65\137\x66\157\x78"])) {
echo "\x2d\x20\104\145\165\x78\151\x65\155\x65\40\145\x74\141\160\145\x20\x76\141\154\x69\x64\145\41\x20\x3c\x62\162\x3e";
if (hash("\155\x64\x32", $_GET["\x76\141\x72\151\141\x62\x6c\x65\x32"]) == "\60") {
echo "\55\x20\124\x72\x6f\151\163\x69\x65\155\145\x20\145\164\141\160\x65\40\166\x61\x6c\151\x64\145\x21\x20\74\142\x72\x3e";
if (hash("\x73\x68\141\x31", $_GET["\166\x61\x72\x69\141\x62\154\145\x33"]) == $_GET["\x76\x61\x72\151\141\142\154\145\63"]) {
echo "\55\40\x4f\153\x61\171\x2c\40\x76\x6f\151\x63\151\40\154\145\x20\146\154\x61\147\40\x3a\x20" . $secretflag . "\74\142\x72\x3e";
}
}
}
}

Function Calls

None

Variables

None

Stats

MD5 f75d4cfd4c6fce421613178716dce224
Eval Count 0
Decode Time 59 ms