Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-01 10:18:32 +02:00
parent 6fb39b0861
commit 6181a4e8e4

View File

@ -39,13 +39,12 @@ start_monitor_interface() {
rfkill unblock all rfkill unblock all
iw dev wlan0 set power_save off iw dev wlan0 set power_save off
ifconfig wlan0 up ifconfig wlan0 up
iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add wlan0mon type monitor airmon-ng start wlan0
ifconfig wlan0 down && ifconfig wlan0mon up
} }
# stops mon0 # stops mon0
stop_monitor_interface() { stop_monitor_interface() {
ifconfig wlan0mon down && iw dev wlan0mon del airmon-ng stop wlan0mon
ifconfig wlan0 up ifconfig wlan0 up
} }