From a50a95e18e80bcabc97b1de62b566e4ae6255aeb Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sat, 2 Dec 2017 05:08:20 -0600 Subject: [PATCH] Fixed an issue caused by killing airodump-ng. The issue was caused by sending SIGTERM rather than SIGINT to airodump-ng. To fix the issue, we execute airodump-ng in the background & send SIGINT. --- attacks/Handshake Snooper/attack.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/attacks/Handshake Snooper/attack.sh b/attacks/Handshake Snooper/attack.sh index 2a6ad03..c4cc2d3 100755 --- a/attacks/Handshake Snooper/attack.sh +++ b/attacks/Handshake Snooper/attack.sh @@ -113,7 +113,7 @@ function handshake_snooper_arbiter_daemon() { function handshake_snooper_stop_captor() { if [ "$HANDSHAKECaptorPID" ]; then - kill $HANDSHAKECaptorPID &> $FLUXIONOutputDevice + kill -s SIGINT $HANDSHAKECaptorPID &> $FLUXIONOutputDevice fi HANDSHAKECaptorPID="" @@ -125,9 +125,8 @@ function handshake_snooper_start_captor() { handshake_snooper_stop_captor - xterm -hold -title "Handshake Captor (CH $APTargetChannel)" $TOPRIGHT -bg "#000000" -fg "#FFFFFF" -e \ - airodump-ng --ignore-negative-one -d $APTargetMAC -w "$FLUXIONWorkspacePath/capture/dump" -c $APTargetChannel -a $WIMonitor & - HANDSHAKECaptorPID=$! # Target the xterm, since we won't need to keep it around. + airodump-ng --ignore-negative-one -d $APTargetMAC -w "$FLUXIONWorkspacePath/capture/dump" -c $APTargetChannel -a $WIMonitor < /dev/null 1> /dev/null 2> $FLUXIONOutputDevice & + HANDSHAKECaptorPID=$! } function handshake_snooper_stop_deauthenticator() {