Run Scripts again in attack mode by using the selector switch

This commit is contained in:
Spacehuhn 2022-07-07 00:05:17 +02:00
parent 3107fba2b7
commit 839d26f348
1 changed files with 12 additions and 2 deletions

View File

@ -65,11 +65,21 @@ void setup() {
} }
// ========== Setup Mode ========== // // ========== Setup Mode ========== //
else if (mode == ATTACK) { else if (mode == ATTACK) {
// Set LED to red led::setColor(255, 0, 0); // Turn LED red
led::setColor(255, 0, 0);
// Start running keystroke injection attack // Start running keystroke injection attack
attack::start(); attack::start();
while (true) {
if (selector::changed()) {
mode = selector::read() ? SETUP : ATTACK;
if (mode == ATTACK) {
attack::start();
}
}
delay(100);
}
} }
debugln("[Finished]"); debugln("[Finished]");