fix to display all possible iface modes
This commit is contained in:
parent
c2f1090390
commit
71fe92fab7
4
wpe
4
wpe
@ -23,7 +23,9 @@ fi
|
||||
|
||||
# List network interfaces and their capabilities
|
||||
echo "[+] Available network interfaces and capabilities:"
|
||||
iw dev | awk '/Interface/ {iface=$2} /supported interface modes/ {modes=""; getline; while ($1 ~ /^[ ]/) {modes = modes " "$1; getline}; print " - Interface: " iface " (Supported Modes:" modes ")"}'
|
||||
iw dev | awk '/Interface/ {iface=$2; print "- Interface: " iface} /type/ {print " Current Mode: "$2}';
|
||||
echo "[+] Supported modes for each interface:";
|
||||
iw list | awk '/Wiphy/ {wiphy=$2} /Supported interface modes/ {print " " wiphy; getline; while ($1 ~ /^[ \t]/) {print " "$1; getline}}'
|
||||
|
||||
# Prompt user for the network card
|
||||
while true; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user