Last active
June 15, 2019 01:16
-
-
Save saru2017/9ae5824674666c9866527a9dc65a8500 to your computer and use it in GitHub Desktop.
CTF: http06_form.php
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
<?php | |
session_start(); | |
$nonce = hash("sha256", session_id()); | |
$_SESSION["csrf_nonce"] = $nonce; | |
?> | |
password is 3 digit number. | |
<form action="http06_login.php" method="POST"> | |
<input type="hidden" name="csrf_nonce" value="<?php echo($nonce);?>"/> | |
<input type="text" name="name"/> | |
<input type="text" name="pass"/> | |
<input type="submit" value="send"/> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment