Skip to content

Commit

Permalink
fixes #618
Browse files Browse the repository at this point in the history
  • Loading branch information
strasharo committed Jan 27, 2019
1 parent 5d654c9 commit f116e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions attacks/Captive Portal/attack.sh
Expand Up @@ -919,8 +919,8 @@ while [ \$AuthenticatorState = \"running\" ]; do
if [ $CaptivePortalAuthenticatorMode = "hash" ]; then
echo "
if [ -f \"$FLUXIONWorkspacePath/candidate_result.txt\" ]; then
# Check if we've got the correct password by looking for anything other than \"Passphrase not in\".
if ! aircrack-ng -b $FluxionTargetMAC -w \"$FLUXIONWorkspacePath/candidate.txt\" \"$CaptivePortalHashPath\" | grep -qi \"Passphrase not in\"; then
# Check if we've got the correct password by looking for anything other than \"Passphrase not in\" or \"KEY NOT FOUND\".
if ! aircrack-ng -b $FluxionTargetMAC -w \"$FLUXIONWorkspacePath/candidate.txt\" \"$CaptivePortalHashPath\" | egrep -qi \"Passphrase not in|KEY NOT FOUND\"; then
echo \"2\" > \"$FLUXIONWorkspacePath/candidate_result.txt\"
sleep 1
Expand Down

0 comments on commit f116e54

Please sign in to comment.