From bac62bc4aa87a7748da0cd0a4674a973b7bca42e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Wed, 17 Jan 2024 23:17:48 +0100 Subject: [PATCH] Fix for pwnlib --- builder/data/usr/bin/pwnlib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/data/usr/bin/pwnlib b/builder/data/usr/bin/pwnlib index d6780b7d..6447624e 100755 --- a/builder/data/usr/bin/pwnlib +++ b/builder/data/usr/bin/pwnlib @@ -39,8 +39,10 @@ reload_brcm() { start_monitor_interface() { rfkill unblock all ifconfig wlan0 up + sleep 3 iw dev wlan0 set power_save off iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add wlan0mon type monitor + sleep 2 rfkill unblock all ifconfig wlan0 down ifconfig wlan0mon up @@ -54,7 +56,7 @@ stop_monitor_interface() { ifconfig wlan0 up } -# returns 0 if the specificed network interface is up +# returns 0 if the specified network interface is up is_interface_up() { if grep -qi 'up' /sys/class/net/"$1"/operstate; then return 0