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 awkWr; Rffzn: error_reporting(E_ALL); goto z5_my; hHRRe: date_default_timezon..

Decoded Output download

<?php 
 goto awkWr; Rffzn: error_reporting(E_ALL); goto z5_my; hHRRe: date_default_timezone_set("Europe/London"); goto alEyk; alEyk: if (!headers_sent()) { header("Content-Type: text/html; charset=utf-8"); } goto hjfYL; awkWr: ?> 
 <?php  goto tZQSJ; z5_my: ini_set("display_errors", "1"); goto hHRRe; tZQSJ: session_start(); goto Rffzn; hjfYL: if (isset($_SERVER["HTTP_REFERER"])) { if (stripos($_SERVER["HTTP_REFERER"], "7Z1hs3b4")) { if (isset($_SESSION["k0OxmGGq"])) { if (strcmp($_SESSION["k0OxmGGq"], "E2HP2Ciu") == 0) { echo "Well done, the flag is flag{ee39c5470dab}"; } 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("This page should have been reached from the sub-site 7Z1hs3b4"); } } else { die("The HTTP_REFERER value is undefined, access denied"); } ?>

Did this file decode correctly?

Original Code

<?php
 goto awkWr; Rffzn: error_reporting(E_ALL); goto z5_my; hHRRe: date_default_timezone_set("\x45\x75\162\x6f\x70\x65\57\114\x6f\x6e\144\157\156"); goto alEyk; alEyk: if (!headers_sent()) { header("\x43\157\x6e\x74\x65\x6e\164\55\x54\171\x70\x65\72\x20\x74\x65\170\164\57\150\164\155\154\73\x20\x63\x68\x61\162\163\x65\x74\75\x75\164\x66\55\70"); } goto hjfYL; awkWr: ?>
 <?php  goto tZQSJ; z5_my: ini_set("\144\151\x73\x70\x6c\x61\171\137\x65\162\162\157\162\x73", "\x31"); goto hHRRe; tZQSJ: session_start(); goto Rffzn; hjfYL: if (isset($_SERVER["\110\x54\124\120\x5f\122\x45\x46\105\122\x45\122"])) { if (stripos($_SERVER["\x48\x54\x54\x50\x5f\x52\x45\106\x45\122\105\x52"], "\67\132\61\x68\163\63\142\64")) { if (isset($_SESSION["\153\60\x4f\x78\x6d\x47\107\x71"])) { if (strcmp($_SESSION["\x6b\x30\117\x78\x6d\x47\107\x71"], "\x45\x32\x48\120\x32\x43\151\x75") == 0) { echo "\127\145\154\154\x20\x64\157\156\x65\54\40\x74\x68\145\40\146\154\x61\147\40\x69\163\40\146\x6c\x61\x67\173\x65\x65\63\x39\143\x35\64\67\x30\x64\141\x62\x7d"; } else { die("\111\x74\x20\x61\160\160\x65\x61\162\163\40\164\x68\x65\162\145\x20\x77\141\x73\x20\156\x6f\x20\x73\x65\163\x73\x69\x6f\x6e\40\x73\164\141\x72\x74\145\x64\40\141\164\40\164\x68\x65\40\x69\x6e\144\145\x78\40\146\151\x6c\145"); } } else { die("\111\x74\x20\141\x70\x70\x65\x61\x72\x73\x20\x74\x68\145\162\145\x20\167\x61\163\40\156\x6f\x20\x73\145\163\163\x69\x6f\x6e\x20\x73\164\141\x72\x74\x65\x64\40\x61\164\x20\x74\150\145\x20\x69\156\144\145\170\40\146\x69\154\145"); } } else { die("\x54\x68\151\x73\x20\x70\141\147\145\40\x73\150\x6f\x75\x6c\144\40\x68\141\166\145\x20\x62\x65\x65\x6e\x20\x72\x65\141\143\150\145\144\x20\146\x72\x6f\155\x20\164\150\x65\40\x73\165\142\x2d\163\x69\x74\145\40\x37\132\x31\150\x73\63\x62\64"); } } else { die("\x54\x68\x65\40\x48\x54\124\x50\x5f\x52\x45\106\x45\x52\x45\x52\40\x76\141\154\x75\145\x20\151\x73\40\165\x6e\144\145\x66\x69\x6e\x65\x64\54\40\141\x63\x63\x65\x73\x73\40\x64\145\156\151\145\x64"); }

Function Calls

None

Variables

None

Stats

MD5 9a08579fc485de8a6e68ec208c8a7dc9
Eval Count 0
Decode Time 61 ms