Update pwnlib

This commit is contained in:
Jeroen Oudshoorn
2023-07-20 20:37:58 +02:00
committed by GitHub
parent c0707d7739
commit fbda755da6

View File

@ -33,13 +33,17 @@ reload_brcm() {
# starts mon0 # starts mon0
start_monitor_interface() { start_monitor_interface() {
rfkill unblock all airmon-ng check kill
ifconfig wlan0 up && iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor && ifconfig mon0 up ip link set wlan0 down
iw wlan0 set monitor none
ip link set wlan0 up
} }
# stops mon0 # stops mon0
stop_monitor_interface() { stop_monitor_interface() {
ifconfig mon0 down && iw dev mon0 del ip link set wlan0 down
iw wlan0 set type managed
ip link set wlan0 up
} }
# returns 0 if the specificed network interface is up # returns 0 if the specificed network interface is up