diagnostics.sh: added basic pyrit / scapy version checks

This commit is contained in:
Tobias Manske 2018-05-03 03:47:36 +02:00
parent fa6b7a2caf
commit 22a8feb58d
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
1 changed files with 12 additions and 0 deletions

View File

@ -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)"