From 22a8feb58dd834d6ad2ba040b145fb3cc5767b9f Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Thu, 3 May 2018 03:47:36 +0200 Subject: [PATCH] diagnostics.sh: added basic pyrit / scapy version checks --- scripts/diagnostics.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/diagnostics.sh b/scripts/diagnostics.sh index 3989886..cfec711 100755 --- a/scripts/diagnostics.sh +++ b/scripts/diagnostics.sh @@ -81,6 +81,18 @@ echo "$HEADER_SIZE Aircrack-ng Info" aircrack-ng -H | head -n 4 echo -ne "\n" +echo "$HEADER_SIZE Pyrit Info" +scapyver=$(python2 -c "import scapy; print(scapy.VERSION)") +pyrit | head -n 3 +echo "**Scapy Version:** ${scapyver}" + +if [[ "$scapyver" != 2.3.? ]]; then + echo -e "\033[31mWarning: Pyrit has been reported to be incompatible with scapy version 2.4.0. Consult the wiki for further information. This should not affect you, if you don't choose to use pyrit in the script.\033[0m" +fi + +echo -ne "\n" + +# System info echo "$HEADER_SIZE System Info" if [ -r "/proc/version" ]; then echo "**Chipset:** $(cat /proc/version)"