2019-10-30 19:24:12 +01:00
|
|
|
#!/usr/bin/env bash
|
2019-10-31 14:14:13 +01:00
|
|
|
source /usr/bin/pwnlib
|
|
|
|
|
2020-04-03 19:01:40 +02:00
|
|
|
# we need to decrypt something
|
|
|
|
if is_crypted_mode; then
|
|
|
|
while ! is_decrypted; do
|
|
|
|
echo "Waiting for decryption..."
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
2020-04-16 17:35:41 +02:00
|
|
|
# check if wifi driver is bugged
|
|
|
|
if ! check_brcm; then
|
2020-04-18 11:17:46 +02:00
|
|
|
if ! reload_brcm; then
|
|
|
|
echo "Could not reload wifi driver. Reboot"
|
|
|
|
reboot
|
|
|
|
fi
|
2020-04-16 17:35:41 +02:00
|
|
|
sleep 10
|
|
|
|
fi
|
|
|
|
|
2019-10-31 12:56:27 +01:00
|
|
|
# start mon0
|
2019-10-31 14:14:13 +01:00
|
|
|
start_monitor_interface
|
2019-10-31 12:56:27 +01:00
|
|
|
|
2019-11-04 17:33:35 +01:00
|
|
|
if is_auto_mode_no_delete; then
|
2023-07-23 11:53:29 +02:00
|
|
|
/usr/local/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface wlan0mon -debug
|
2019-10-31 14:14:13 +01:00
|
|
|
else
|
2023-07-23 11:53:29 +02:00
|
|
|
/usr/local/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface wlan0mon -debug
|
2019-10-30 19:24:12 +01:00
|
|
|
fi
|