mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge remote-tracking branch 'origin/pwnagotchi-torch' into pwnagotchi-torch
This commit is contained in:
@ -93,6 +93,8 @@ cd bettercap
|
|||||||
make all
|
make all
|
||||||
sudo make install
|
sudo make install
|
||||||
sudo bettercap -eval "caplets.update; ui.update; quit"
|
sudo bettercap -eval "caplets.update; ui.update; quit"
|
||||||
|
sudo nano /usr/local/share/bettercap/caplets/pwnagotchi-auto.cap # change iface to wlan0
|
||||||
|
sudo nano /usr/local/share/bettercap/caplets/pwnagotchi-manual.cap # change iface to wlan0
|
||||||
```
|
```
|
||||||
|
|
||||||
# Install PwnGrid
|
# Install PwnGrid
|
||||||
|
@ -22,7 +22,7 @@ fi
|
|||||||
start_monitor_interface
|
start_monitor_interface
|
||||||
|
|
||||||
if is_auto_mode_no_delete; then
|
if is_auto_mode_no_delete; then
|
||||||
/usr/local/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
/usr/local/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface wlan0
|
||||||
else
|
else
|
||||||
/usr/local/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface mon0
|
/usr/local/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface wlan0
|
||||||
fi
|
fi
|
||||||
|
@ -33,13 +33,17 @@ reload_brcm() {
|
|||||||
|
|
||||||
# starts mon0
|
# starts mon0
|
||||||
start_monitor_interface() {
|
start_monitor_interface() {
|
||||||
rfkill unblock all
|
airmon-ng check kill
|
||||||
ifconfig wlan0 up && iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor && ifconfig mon0 up
|
ip link set wlan0 down
|
||||||
|
iw wlan0 set monitor none
|
||||||
|
ip link set wlan0 up
|
||||||
}
|
}
|
||||||
|
|
||||||
# stops mon0
|
# stops mon0
|
||||||
stop_monitor_interface() {
|
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
|
# returns 0 if the specificed network interface is up
|
||||||
|
Reference in New Issue
Block a user