salut a tous 
voila, j'ai installé hydra sur mon pc, et j'essaye d'attaquer mon localhost : j'essaye de me connecter au petit formulaire que j'ai créé :
	
	1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
   | <?php
if(isset($_POST["usr"]) && isset($_POST["pwd"])) {
  if($_POST["usr"]=="admin" && $_POST["pwd"]=="password") {
    header("Location: http://www.google.com");
  } else {
    echo("Incorrect login or password");
  }
}
?>
<html>
  <body>
    <form action="test.php" method="post">
      <input type="text" name="usr" />
      <input type="password" name="pwd" />
      <input type="submit" name="login" value="Connect" />
    </form>
  </body>
</html> | 
 grace a hydra en faisant ceci :
	
	hydra -l admin -p password -V "localhost" http-post-form "/admin/test.php:usr=^USER^&pwd=^PASS^&login=Connect:Incorrect"
 mais ho surprise ! ca me sort cette erreur la :
z'auriez pas une p'tite idée du pourquoi du comment siouplais ?
merci bien 
						
					
Partager