From e3ef1110ca609e03ef73e0621359d65ad1ded878 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Fri, 18 Aug 2017 17:01:43 -0500 Subject: [PATCH] Fixed bug caused by field offset after --ignore-negative-one. --- attacks/Handshake Snooper/attack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attacks/Handshake Snooper/attack.sh b/attacks/Handshake Snooper/attack.sh index 9a2ecb6..af0b4b9 100755 --- a/attacks/Handshake Snooper/attack.sh +++ b/attacks/Handshake Snooper/attack.sh @@ -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 }