How to compare the password via a Wordlist

Asked

Viewed 49 times

0

How can I implement in the code so that the password is compared through a Wordlist in . txt? And print the password that is matched. In the Example below the password is hello world.

$hash = '$2a$08$Cf1f11ePArKlBJomM0F6a.EyvTNh6W2huyQi5UZst5qsHVyi3w5x.';
if (password_verify('ola mundo', $hash)) {
echo 'A senha está correta';
} else {
echo 'Senha incorreta';
}
?>

  • What is to be compared? You have a list and want to use passoword_verify on it? Or you want to check if olha mundo is on a list, to identify weak passwords for example.

  • i have a txt list, I want to use password_verify to identify weak passwords as if it were a bruteforce

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.