Updated diagnostics script.

This commit is contained in:
Matias Barcenas 2017-08-27 03:15:18 -05:00
parent 64b0368de4
commit 20b9b9ec4f
1 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,7 @@ then echo "Usage ./scripts/diagnostics <wireless_interface>"; 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 ]"