Added airmon-ng support for prism[0-9]+ interfaces.
This commit is contained in:
parent
f7a8db7843
commit
e4f074b953
|
@ -336,7 +336,7 @@ fluxion_shutdown() {
|
||||||
local interface
|
local interface
|
||||||
for interface in "${!FluxionInterfaces[@]}"; do
|
for interface in "${!FluxionInterfaces[@]}"; do
|
||||||
# Only deallocate fluxion or airmon-ng created interfaces.
|
# Only deallocate fluxion or airmon-ng created interfaces.
|
||||||
if [[ "$interface" == "flux"* || "$interface" == *"mon"* ]]; then
|
if [[ "$interface" == "flux"* || "$interface" == *"mon"* || "$interface" == "prism"* ]]; then
|
||||||
fluxion_deallocate_interface $interface
|
fluxion_deallocate_interface $interface
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -755,7 +755,7 @@ fluxion_deallocate_interface() { # Release interfaces
|
||||||
|
|
||||||
if interface_is_wireless $oldIdentifier; then
|
if interface_is_wireless $oldIdentifier; then
|
||||||
# If interface was allocated by airmon-ng, deallocate with it.
|
# If interface was allocated by airmon-ng, deallocate with it.
|
||||||
if [[ "$oldIdentifier" == *"mon"* ]]; then
|
if [[ "$oldIdentifier" == *"mon"* || "$oldIdentifier" == "prism"* ]]; then
|
||||||
if ! airmon-ng stop $oldIdentifier &> $FLUXIONOutputDevice; then
|
if ! airmon-ng stop $oldIdentifier &> $FLUXIONOutputDevice; then
|
||||||
return 4
|
return 4
|
||||||
fi
|
fi
|
||||||
|
@ -901,7 +901,7 @@ fluxion_allocate_interface() { # Reserve interfaces
|
||||||
local -r newIdentifier=$(
|
local -r newIdentifier=$(
|
||||||
airmon-ng start $identifier |
|
airmon-ng start $identifier |
|
||||||
grep "monitor .* enabled" |
|
grep "monitor .* enabled" |
|
||||||
grep -oP "wl[a-zA-Z0-9]+mon|mon[0-9]+"
|
grep -oP "wl[a-zA-Z0-9]+mon|mon[0-9]+|prism[0-9]+"
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
# Attempt activating monitor mode on the interface.
|
# Attempt activating monitor mode on the interface.
|
||||||
|
|
Loading…
Reference in New Issue