Created
February 28, 2018 15:33
-
-
Save HFahlstedt/f917a3d63b0ad4e48f22ccde0ec98476 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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