display all possible iface modes

This commit is contained in:
Max Fiedler 2025-02-16 12:02:43 +01:00
parent 91db42fab9
commit c2f1090390

2
wpe
View File

@ -23,7 +23,7 @@ fi
# List network interfaces and their capabilities
echo "[+] Available network interfaces and capabilities:"
iw dev | awk '/Interface/ {iface=$2} /type/ {print " - Interface: " iface " (Mode: "$2")"}'
iw dev | awk '/Interface/ {iface=$2} /supported interface modes/ {modes=""; getline; while ($1 ~ /^[ ]/) {modes = modes " "$1; getline}; print " - Interface: " iface " (Supported Modes:" modes ")"}'
# Prompt user for the network card
while true; do