diff --git a/builder/data/usr/bin/pwnlib b/builder/data/usr/bin/pwnlib index 58b93677..9da86e08 100755 --- a/builder/data/usr/bin/pwnlib +++ b/builder/data/usr/bin/pwnlib @@ -33,13 +33,17 @@ reload_brcm() { # starts mon0 start_monitor_interface() { - rfkill unblock all - ifconfig wlan0 up && iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor && ifconfig mon0 up + airmon-ng check kill + ip link set wlan0 down + iw wlan0 set monitor none + ip link set wlan0 up } # stops mon0 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