Restored Fluxion Scanner's xterm.

Signal interrupt is also sent to airodump-ng, gracefully terminating it.
This commit is contained in:
Matias Barcenas 2017-12-05 16:52:27 -06:00
parent 7ab63da737
commit 1e7b724d5d
1 changed files with 7 additions and 2 deletions

View File

@ -125,8 +125,13 @@ function handshake_snooper_start_captor() {
handshake_snooper_stop_captor handshake_snooper_stop_captor
airodump-ng --ignore-negative-one -d $APTargetMAC -w "$FLUXIONWorkspacePath/capture/dump" -c $APTargetChannel -a $WIMonitor < /dev/null 1> /dev/null 2> $FLUXIONOutputDevice & xterm $FLUXIONHoldXterm -title "Handshake Captor (CH $APTargetChannel)" $TOPLEFT -bg "#000000" -fg "#FFFFFF" -e \
HANDSHAKECaptorPID=$! airodump-ng --ignore-negative-one -d $APTargetMAC -w "$FLUXIONWorkspacePath/capture/dump" -c $APTargetChannel -a $WIMonitor &
local parentPID=$!
while [ ! "$HANDSHAKECaptorPID" ]
do sleep 1; HANDSHAKECaptorPID=$(pgrep -P $parentPID)
done
} }
function handshake_snooper_stop_deauthenticator() { function handshake_snooper_stop_deauthenticator() {