Skip to content

Instantly share code, notes, and snippets.

@HFahlstedt
Created February 28, 2018 15:33
Show Gist options
  • Save HFahlstedt/f917a3d63b0ad4e48f22ccde0ec98476 to your computer and use it in GitHub Desktop.
Save HFahlstedt/f917a3d63b0ad4e48f22ccde0ec98476 to your computer and use it in GitHub Desktop.
<?
$encodedSecret = "3d3d516343746d4d6d6c315669563362";
function encodeSecret($secret) {
return bin2hex(strrev(base64_encode($secret)));
}
if(array_key_exists("submit", $_POST)) {
if(encodeSecret($_POST['secret']) == $encodedSecret) {
print "Access granted. The password for natas9 is <censored>";
} else {
print "Wrong secret";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment