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 hQquy; qI3xG: if ($_SERVER["\122\x45\121\x55\105\123\124\137\x4d\x45\124\x48\..
Decoded Output download
<?php
goto hQquy; qI3xG: if ($_SERVER["REQUEST_METHOD"] == "POST") { $flagInput = htmlspecialchars($_POST["flag"]); if (in_array($flagInput, $flags)) { $msg = "<div class='alert alert-success'>Correct Flag!</div>"; } else { $msg = "<div class='alert alert-danger'>Incorrect Flag. Please try again.</div>"; } } goto boJST; boJST: ?>
<!doctypehtml><html><head><link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"rel="stylesheet"></head><body><div class="container"><h1 class="mb-3 mt-5">CTF Flag Checker (Skill Test Batch 32)</h1><form method="POST"><div class="form-group"><label for="flag">Flag:</label> <input class="form-control"id="flag"name="flag"required></div><button class="btn btn-primary"type="submit">Submit</button></form><?php goto UdgHz; VwMuZ: $msg = ''; goto qI3xG; UdgHz: echo $msg; goto VKtV0; hQquy: $flags = array("{N073nT1r3lY874cKb0xi5i7}", "{5Ql1_43rf0rm3d_5ucC355fUL7Y}", "{C4pTUr1ng7H3F1ag51@At1m3}", "{W0w_uXecu73dD_01100010_01101001_01101110_01100001_01110010_01111001}", "{700k5L1k3Y0uRd01nGr8847Ch32}", "{Y0U_35C4Lat3D_Pr!V173Ge_70_@Dm!n}", "{R3V3r5e_3nG!NEEr!ng_G0D}", "{1n70D1Ff3rentDa748a53}"); goto VwMuZ; VKtV0: ?>
</div><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script></body></html>
Did this file decode correctly?
Original Code
<?php
goto hQquy; qI3xG: if ($_SERVER["\122\x45\121\x55\105\123\124\137\x4d\x45\124\x48\117\104"] == "\120\117\123\x54") { $flagInput = htmlspecialchars($_POST["\x66\x6c\141\x67"]); if (in_array($flagInput, $flags)) { $msg = "\74\144\x69\x76\40\x63\x6c\141\x73\x73\x3d\x27\141\x6c\145\x72\x74\40\x61\154\x65\x72\x74\55\163\x75\x63\143\x65\163\163\x27\76\103\157\162\162\x65\x63\x74\40\x46\154\141\x67\x21\74\x2f\144\151\166\76"; } else { $msg = "\74\144\151\x76\40\143\154\141\163\163\x3d\x27\141\x6c\x65\162\164\40\x61\x6c\x65\162\x74\55\x64\141\x6e\x67\x65\162\47\76\x49\x6e\143\x6f\162\162\145\143\164\x20\106\154\x61\147\56\x20\x50\154\145\141\163\x65\40\164\x72\171\40\141\x67\141\x69\x6e\56\x3c\57\144\x69\x76\x3e"; } } goto boJST; boJST: ?>
<!doctypehtml><html><head><link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"rel="stylesheet"></head><body><div class="container"><h1 class="mb-3 mt-5">CTF Flag Checker (Skill Test Batch 32)</h1><form method="POST"><div class="form-group"><label for="flag">Flag:</label> <input class="form-control"id="flag"name="flag"required></div><button class="btn btn-primary"type="submit">Submit</button></form><?php goto UdgHz; VwMuZ: $msg = ''; goto qI3xG; UdgHz: echo $msg; goto VKtV0; hQquy: $flags = array("\173\x4e\60\67\63\x6e\124\61\162\x33\154\x59\x38\67\64\143\x4b\x62\x30\x78\151\x35\151\67\175", "\173\x35\x51\x6c\x31\137\x34\63\x72\146\x30\x72\155\63\x64\137\x35\x75\143\103\63\65\x35\146\x55\x4c\x37\131\x7d", "\173\x43\x34\x70\x54\125\x72\x31\x6e\x67\x37\x48\63\106\x31\141\147\x35\61\x40\x41\164\x31\x6d\63\x7d", "\173\x57\x30\x77\x5f\x75\x58\x65\x63\165\x37\x33\144\x44\137\60\x31\61\x30\60\x30\x31\60\x5f\60\61\61\x30\x31\x30\60\61\137\60\61\x31\60\x31\x31\61\x30\x5f\60\x31\x31\60\60\x30\60\x31\x5f\60\x31\61\x31\x30\x30\61\x30\137\60\61\x31\61\x31\60\60\x31\175", "\x7b\x37\60\x30\153\x35\114\x31\153\x33\131\60\x75\x52\x64\x30\x31\156\107\162\x38\x38\x34\x37\103\x68\63\62\175", "\173\x59\60\x55\137\63\x35\x43\x34\x4c\141\x74\63\x44\137\x50\x72\x21\126\61\x37\63\x47\x65\x5f\x37\x30\137\100\x44\x6d\x21\x6e\x7d", "\173\122\x33\126\x33\162\65\x65\x5f\63\156\107\41\116\105\105\162\41\x6e\147\x5f\x47\60\x44\x7d", "\x7b\x31\156\x37\60\x44\61\x46\x66\63\162\145\156\x74\104\141\67\x34\x38\141\x35\63\175"); goto VwMuZ; VKtV0: ?>
</div><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script></body></html>
Function Calls
None |
Stats
MD5 | a54769c8999e87960e9b0d6d523eefc1 |
Eval Count | 0 |
Decode Time | 59 ms |