Changed interface search expression to support more OSs.

This commit is contained in:
Matias Barcenas 2017-08-10 23:34:16 -05:00
parent c15bd1b7bc
commit 71076314ee
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ function set_interface() {
# Create an array with the list of physical network interfaces
local WIAvailableData
readarray -t WIAvailableData < <(airmon-ng | grep -P 'wlan\d+' | sed -r 's/[ ]{2,}|\t+/:_:/g')
readarray -t WIAvailableData < <(airmon-ng | grep -P 'wl(an\d+|\w+)' | sed -r 's/[ ]{2,}|\t+/:_:/g')
local WIAvailableDataCount=${#WIAvailableData[@]}
local WIAvailable=()
local WIAvailableInfo=()