Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

Added some symbols to the list of chars used to enter password on T-Embed

fdufnews7fa352cf84a7
diff --git a/src/Vendors/TembedWifiSetup.cpp b/src/Vendors/TembedWifiSetup.cpp
index 892543b5..071adfb1 100644
--- a/src/Vendors/TembedWifiSetup.cpp
+++ b/src/Vendors/TembedWifiSetup.cpp
@@ -158,7 +158,7 @@ String selectWifiNetwork(TFT_eSPI& tft) {
}
String enterText(const String& label, TFT_eSPI& tft) {
- const String charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_ .@#<";
+ const String charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_ .@!#$%^&*()=+{}[]|\\:;\"'<>,?/~\x08\x0D";
int index = 0;
String text = "";
@@ -173,15 +173,15 @@ String enterText(const String& label, TFT_eSPI& tft) {
char currentChar = charset[index];
String alias;
- if (currentChar == '<') {
+ if (currentChar == '\x08') {
alias = "<-";
- } else if (currentChar == '#') {
+ } else if (currentChar == '\x0D') {
alias = "OK";
} else {
alias = String(currentChar);
}
- String charDisplay = (currentChar == '#' || currentChar == '<')
+ String charDisplay = (currentChar == '\x08' || currentChar == '\x0D')
? "[" + alias + "]"
: alias;
String display = text + charDisplay;
@@ -198,9 +198,9 @@ String enterText(const String& label, TFT_eSPI& tft) {
} else if (key == KEY_ARROW_LEFT) {
index = (index + 1) % charset.length();
} else if (key == KEY_OK) {
- if (currentChar == '<') {
+ if (currentChar == '\x08') {
if (!text.isEmpty()) text.remove(text.length() - 1);
- } else if (currentChar == '#') {
+ } else if (currentChar == '\x0D') {
return text;
} else {
text += currentChar;
diff --git a/src/Views/SerialTerminalView.cpp b/src/Views/SerialTerminalView.cpp
index 994a398b..d97c4648 100644
--- a/src/Views/SerialTerminalView.cpp
+++ b/src/Views/SerialTerminalView.cpp
@@ -19,16 +19,6 @@ void SerialTerminalView::welcome(TerminalTypeEnum& terminalType, std::string& te
Serial.println(" |____/ \\__,_|___/ |_| |_|_| \\__,_|\\__\\___|");
Serial.println();
Serial.println(" ESP32 SWISS ARMY KNIFE");
-/*
- Serial.println("");
- Serial.println(" ____ ____ _ __ ___ ___ ____ _ __ _ _ ");
- Serial.println(" | __/ ___| '_ \\ |__ |__ | | __ ) _ _ ___ | '_ \\(_)_ __ __ _| |_ ___ ");
- Serial.println(" | |__\\____| |_) | / / / | | _ \\| | | / __| | |_) | | '__/ _` | __/ _ \\");
- Serial.println(" | |__ ___ \\ .__/ _\\ \\/ / | |_) | |_| \\__ \\ | .__/| | | | (_| | || __/");
- Serial.println(" |____|____/_| |___|___| |____/ \\__,_|___/ |_| |_|_| \\__,_|\\__\\___|");
- Serial.println();
- Serial.println("SNIFFING, SCRIPTING, AND INTERACTING WITH VARIOUS DIGITAL AND RADIO PROTOCOLS");
-*/
/*
Serial.println(" ____ _ _ ");
Serial.println(" | __ ) _ _ ___ _ __ (_)_ __ __ _| |_ ___ ");