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 goto Ifd7G; HKWzG: if (!headers_sent()) { header("\x43\157\x6e\164\x65\156\x74\55\..

Decoded Output download

<?php 
 goto Ifd7G; HKWzG: if (!headers_sent()) { header("Content-Type: text/html; charset=utf-8"); } goto buS0Q; Ifd7G: ?> 
 <?php  goto GlwMS; b5OnG: error_reporting(E_ALL); goto EHnhe; GlwMS: session_start(); goto b5OnG; L7uHJ: date_default_timezone_set("Europe/London"); goto HKWzG; EHnhe: ini_set("display_errors", "1"); goto L7uHJ; buS0Q: if (isset($_SERVER["HTTP_REFERER"])) { if (stripos($_SERVER["HTTP_REFERER"], "SemdKbME")) { if (isset($_SESSION["zB3aWUhP"])) { if (strcmp($_SESSION["zB3aWUhP"], "76VRIRhg") == 0) { echo "Well done, the flag is flag{1011dd01a534}"; } else { die("It appears there was no session started at the index file"); } } else { die("It appears there was no session started at the index file"); } } else { die("The HTTP REFERER should be part of the same subsite (SemdKbME)"); } } else { die("The HTTP_REFERER value is undefined, access denied"); } ?>

Did this file decode correctly?

Original Code

<?php
 goto Ifd7G; HKWzG: if (!headers_sent()) { header("\x43\157\x6e\164\x65\156\x74\55\x54\x79\160\x65\72\40\x74\x65\170\164\57\150\164\x6d\x6c\x3b\x20\143\x68\141\162\x73\145\164\x3d\165\x74\x66\55\70"); } goto buS0Q; Ifd7G: ?>
 <?php  goto GlwMS; b5OnG: error_reporting(E_ALL); goto EHnhe; GlwMS: session_start(); goto b5OnG; L7uHJ: date_default_timezone_set("\105\165\162\x6f\160\x65\x2f\x4c\157\x6e\x64\157\x6e"); goto HKWzG; EHnhe: ini_set("\x64\151\163\x70\x6c\141\x79\137\x65\x72\162\x6f\162\x73", "\x31"); goto L7uHJ; buS0Q: if (isset($_SERVER["\x48\x54\124\x50\137\x52\105\x46\x45\122\x45\122"])) { if (stripos($_SERVER["\110\x54\x54\x50\137\122\x45\106\x45\122\x45\122"], "\x53\x65\155\x64\x4b\x62\115\105")) { if (isset($_SESSION["\x7a\102\63\141\127\125\x68\120"])) { if (strcmp($_SESSION["\172\102\x33\141\x57\125\x68\120"], "\x37\x36\x56\122\111\x52\150\147") == 0) { echo "\127\x65\x6c\154\40\x64\x6f\156\x65\x2c\40\164\x68\145\40\x66\154\x61\x67\40\x69\163\x20\x66\x6c\x61\x67\173\61\x30\61\61\x64\144\x30\61\x61\x35\63\64\175"; } else { die("\x49\164\40\141\160\x70\145\x61\x72\x73\x20\x74\x68\x65\162\x65\40\167\x61\x73\x20\x6e\x6f\40\x73\x65\163\x73\151\157\x6e\40\163\x74\x61\162\x74\x65\x64\40\141\164\40\x74\x68\x65\40\x69\156\144\145\x78\x20\146\x69\154\145"); } } else { die("\111\164\x20\141\160\160\x65\x61\162\x73\x20\164\150\x65\162\145\x20\167\141\x73\x20\x6e\x6f\40\x73\145\163\163\151\x6f\156\40\x73\164\x61\162\164\145\144\40\141\164\40\164\150\x65\x20\x69\x6e\x64\x65\170\x20\146\x69\x6c\x65"); } } else { die("\x54\150\x65\40\110\124\124\120\x20\x52\105\x46\x45\x52\105\x52\x20\x73\x68\x6f\165\154\x64\40\142\x65\40\160\x61\x72\164\x20\157\146\x20\164\x68\145\40\x73\141\x6d\x65\40\163\165\142\163\x69\x74\x65\40\x28\x53\145\x6d\x64\113\142\115\105\51"); } } else { die("\x54\x68\x65\40\x48\x54\x54\120\137\x52\x45\x46\x45\x52\105\x52\40\x76\x61\x6c\x75\x65\40\x69\x73\40\x75\x6e\144\145\146\x69\156\x65\144\x2c\x20\141\x63\143\145\x73\163\40\x64\x65\156\151\x65\144"); }

Function Calls

None

Variables

None

Stats

MD5 d6b247c827682f39a43dca066fc90f96
Eval Count 0
Decode Time 41 ms