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
|
|
|
|
|
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
|
2019-10-30 19:24:12 +01:00
|
|
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
2019-10-31 14:14:13 +01:00
|
|
|
else
|
|
|
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface mon0
|
2019-10-30 19:24:12 +01:00
|
|
|
fi
|