Fixed bug caused by field offset after --ignore-negative-one.

This commit is contained in:
Matias Barcenas 2017-08-18 17:01:43 -05:00
parent ffd70e8230
commit e3ef1110ca
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ function handshake_start_captor() {
# Here, we'll wait for the airodump-ng PID, since we want to leave the xterm open.
# This is because we need to have a method of notifying the user the hash is captured.
# Once the hash is captured, we can terminate the captor and the xterm will freeze.
HANDSHAKECaptorPID=$(ps a | awk '$5~/^airodump-ng/ && $7~/'"$APTargetMAC"'/{print $1}')
HANDSHAKECaptorPID=$(ps a | awk '$5~/^airodump-ng/ && $8~/'"$APTargetMAC"'/{print $1}')
sleep 1
done
}