mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
V2.2.1
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com> Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -37,6 +37,7 @@ reload_brcm() {
|
|||||||
# starts mon0
|
# starts mon0
|
||||||
start_monitor_interface() {
|
start_monitor_interface() {
|
||||||
rfkill unblock all
|
rfkill unblock all
|
||||||
|
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
|
iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add wlan0mon type monitor
|
||||||
ifconfig wlan0 down && ifconfig wlan0mon up
|
ifconfig wlan0 down && ifconfig wlan0mon up
|
||||||
@ -44,7 +45,8 @@ start_monitor_interface() {
|
|||||||
|
|
||||||
# stops mon0
|
# stops mon0
|
||||||
stop_monitor_interface() {
|
stop_monitor_interface() {
|
||||||
airmon-ng stop wlan0
|
ifconfig wlan0mon down && iw dev wlan0mon del
|
||||||
|
ifconfig wlan0 up
|
||||||
}
|
}
|
||||||
|
|
||||||
# returns 0 if the specificed network interface is up
|
# returns 0 if the specificed network interface is up
|
||||||
|
Reference in New Issue
Block a user