From 20b9b9ec4f717abeb46031a7ef93055879c61456 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sun, 27 Aug 2017 03:15:18 -0500 Subject: [PATCH] Updated diagnostics script. --- scripts/diagnostics.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/diagnostics.sh b/scripts/diagnostics.sh index f28af9a..eda151c 100755 --- a/scripts/diagnostics.sh +++ b/scripts/diagnostics.sh @@ -7,7 +7,7 @@ then echo "Usage ./scripts/diagnostics "; exit 1 fi echo "[ FLUXION Info ]" -declare -r FLUXIONInfo=($(egrep "^FLUXION(Version|Revision)" fluxion.sh)) +declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" fluxion.sh)) echo "FLUXION V${FLUXIONInfo[0]/*=/}.${FLUXIONInfo[1]/*=/}" echo -ne "\n\n" @@ -32,9 +32,8 @@ then echo "Chipset: $InterfaceChipset" else echo "Chipset: Unknown" fi -echo - -aireplay-ng --test "$1" +echo -n "Injection Test: " +aireplay-ng --test "$1" | grep -oE "Injection is working!|No Answer..." || echo "failed" echo -ne "\n\n" echo "[ XTerm Info ]"