mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
changed pwnlib
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com> Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -36,16 +36,12 @@ reload_brcm() {
|
|||||||
|
|
||||||
# starts mon0
|
# starts mon0
|
||||||
start_monitor_interface() {
|
start_monitor_interface() {
|
||||||
iw dev wlan0 set power_save off
|
airmon-ng start wlan0
|
||||||
iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor
|
|
||||||
sleep 2
|
|
||||||
ifconfig wlan0 down
|
|
||||||
ifconfig mon0 up
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# stops mon0
|
# stops mon0
|
||||||
stop_monitor_interface() {
|
stop_monitor_interface() {
|
||||||
ifconfig mon0 down && iw dev mon0 del
|
airmon-ng stop wlan0
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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