Run Scripts again in attack mode by using the selector switch
This commit is contained in:
parent
3107fba2b7
commit
839d26f348
14
USBNova.ino
14
USBNova.ino
|
@ -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]");
|
||||||
|
|
Loading…
Reference in New Issue