Skip to content

Instantly share code, notes, and snippets.

@tranquangchau
Created December 17, 2019 08:14
Show Gist options
  • Save tranquangchau/c04e48466d02ea512b574858f237abca to your computer and use it in GitHub Desktop.
Save tranquangchau/c04e48466d02ea512b574858f237abca to your computer and use it in GitHub Desktop.
get password for adminer_pass.php or http://www.passwordtool.hu/php5-password-hash-generator
<?php
if(isset($_POST["sub"])) {
$pass_has = password_hash($_POST['firstpassword'], PASSWORD_DEFAULT);
echo $pass_has; //get password first
// die;
}
?>
<form name="input" action="" method="post">
<label for="firstpassword">Password:</label><input type="password" value="" id="firstpassword" name="firstpassword" />
<input type="submit" value="login" name="sub" />
</form>
or <a href="http://www.passwordtool.hu/php5-password-hash-generator">get pass</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment