From 28d8e8a2c8c5e957365beeb812360a260d7fdbb8 Mon Sep 17 00:00:00 2001 From: Sniffleupagus Date: Tue, 13 Jun 2023 13:48:14 -0700 Subject: [PATCH] bring wlan0 down so mon0 can come up after creating mon0 --- 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 0e45d259..eb73a479 100755 --- a/builder/data/usr/bin/pwnlib +++ b/builder/data/usr/bin/pwnlib @@ -33,7 +33,9 @@ reload_brcm() { # starts mon0 start_monitor_interface() { - iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor && ifconfig mon0 up + iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor + ifconfig wlan0 down + ifconfig mon0 up } # stops mon0