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-30 19:24:12 +01:00
|
|
|
# blink 10 times to signal ready state
|
2019-10-31 14:14:13 +01:00
|
|
|
blink_led 10 &
|
2019-10-31 12:56:27 +01:00
|
|
|
|
2019-10-31 14:14:13 +01:00
|
|
|
if is_auto_mode; then
|
2019-10-30 19:24:12 +01:00
|
|
|
/usr/local/bin/pwnagotchi
|
2019-10-31 14:14:13 +01:00
|
|
|
else
|
|
|
|
/usr/local/bin/pwnagotchi --manual
|
2020-04-03 19:01:40 +02:00
|
|
|
fi
|