forked from pr3y/Bruce
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for brighness control pr3y#541 Fix fo theme colors and redstripe messages with white colors pr3y#523 Added Arp Poisoning (all clients), Arp spoof (one client) and Arpsoof Mitm (POC, need testing)
- Loading branch information
Showing
22 changed files
with
371 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,19 +284,19 @@ void ble_setup() { | |
if (!kbChosen_ble) Kble.begin(); // starts the KeyboardLayout_en_US as default if nothing had beed chosen (cancel selection) | ||
Ask_for_restart=1; // arm the flag | ||
first_time=false; | ||
displayRedStripe("Waiting Victim",TFT_WHITE, bruceConfig.priColor); | ||
This comment has been minimized.
Sorry, something went wrong.
rennancockles
|
||
displayRedStripe("Waiting Victim",getComplementaryColor2(bruceConfig.priColor), bruceConfig.priColor); | ||
} | ||
while (!Kble.isConnected() && !checkEscPress()); | ||
|
||
if(Kble.isConnected()) { | ||
BLEConnected=true; | ||
displayRedStripe("Preparing",TFT_WHITE, bruceConfig.priColor); | ||
displayRedStripe("Preparing",getComplementaryColor2(bruceConfig.priColor), bruceConfig.priColor); | ||
delay(1000); | ||
displayWarning(String(BTN_ALIAS) + " to deploy", true); | ||
delay(200); | ||
key_input_ble(*fs, bad_script); | ||
|
||
displayRedStripe("Payload Sent",TFT_WHITE, bruceConfig.priColor); | ||
displayRedStripe("Payload Sent",getComplementaryColor2(bruceConfig.priColor), bruceConfig.priColor); | ||
checkSelPress(); | ||
while (!checkSelPress()) { | ||
// nothing here, just to hold the screen press Ok of M5. | ||
|
@@ -321,7 +321,7 @@ void ble_MediaCommands() { | |
|
||
if(!Kble.isConnected()) Kble.begin(); | ||
|
||
displayRedStripe("Pairing...",TFT_WHITE, bruceConfig.priColor); | ||
displayRedStripe("Pairing...",getComplementaryColor2(bruceConfig.priColor), bruceConfig.priColor); | ||
|
||
while (!Kble.isConnected() && !checkEscPress()); | ||
|
||
|
@@ -380,7 +380,7 @@ void ble_keyboard() { | |
if (!kbChosen_ble) Kble.begin(); // starts the KeyboardLayout_en_US as default if nothing had beed chosen (cancel selection) | ||
Ask_for_restart=1; | ||
Reconnect: | ||
displayRedStripe("Pair to start",TFT_WHITE, bruceConfig.priColor); | ||
displayRedStripe("Pair to start",getComplementaryColor2(bruceConfig.priColor), bruceConfig.priColor); | ||
|
||
while (!Kble.isConnected() && !checkEscPress()); // loop to wait for the connection callback or ESC | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
acho que aqui ao invés de validar pelo index seria melhor tentar validar pelo valor, pq se no futuro adicionar outra opção de bright vai quebrar aqui. De repente vale tentar ver se
String(options[index].label.c_str()).toInt()
for um int válido e maior que 0 usa ele, caso contrário usa obruceConfig.bright