A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
harmonize spacing for shells
Geo446bb22fed5c
diff --git a/src/Shells/I2cEepromShell.cpp b/src/Shells/I2cEepromShell.cppindex 4aaafa62..45b37695 100644--- a/src/Shells/I2cEepromShell.cpp+++ b/src/Shells/I2cEepromShell.cpp@@ -37,7 +37,7 @@ void I2cEepromShell::run(uint8_t addr) {// Select actionterminalView.println("\n=== I2C EEPROM Shell ===");int index = userInputManager.readValidatedChoiceIndex("Select an EEPROM action", actions, 0);- if (index == -1 || actions[index] == "πͺ Exit Shell") {+ if (index == -1 || actions[index] == " πͺ Exit Shell") {terminalView.println("Exiting EEPROM shell...\n");break;}diff --git a/src/Shells/I2cEepromShell.h b/src/Shells/I2cEepromShell.hindex 435af3f8..c42bb7c8 100644--- a/src/Shells/I2cEepromShell.h+++ b/src/Shells/I2cEepromShell.h@@ -23,13 +23,13 @@ public:private:// Available actionsconst std::vector<std::string> actions = {- "π Probe",- "π Analyze",- "π Read bytes",- "βοΈ Write bytes",- "ποΈ Dump EEPROM",- "π£ Erase EEPROM",- "πͺ Exit Shell"+ " π Probe",+ " π Analyze",+ " π Read bytes",+ " βοΈ Write bytes",+ " ποΈ Dump EEPROM",+ " π£ Erase EEPROM",+ " πͺ Exit Shell"};// Available EEPROM modelsdiff --git a/src/Shells/IbuttonShell.cpp b/src/Shells/IbuttonShell.cppindex ae1f3166..851e6821 100644--- a/src/Shells/IbuttonShell.cpp+++ b/src/Shells/IbuttonShell.cpp@@ -16,17 +16,17 @@ IbuttonShell::IbuttonShell(ITerminalView& terminalView,void IbuttonShell::run() {const std::vector<std::string> actions = {- "π Read ID",- "βοΈ Write ID",- "π Copy ID",- "πͺ Exit Shell"+ " π Read ID",+ " βοΈ Write ID",+ " π Copy ID",+ " πͺ Exit Shell"};while (true) {terminalView.println("\n=== iButton RW1990 Shell ===");int index = userInputManager.readValidatedChoiceIndex("Select an action", actions, 0);- if (index == -1 || actions[index] == "πͺ Exit Shell") {+ if (index == -1 || actions[index] == " πͺ Exit Shell") {terminalView.println("Exiting iButton Shell...\n");break;}diff --git a/src/Shells/SmartCardShell.cpp b/src/Shells/SmartCardShell.cppindex 220c6248..265f3755 100644--- a/src/Shells/SmartCardShell.cpp+++ b/src/Shells/SmartCardShell.cpp@@ -17,22 +17,22 @@ SmartCardShell::SmartCardShell(void SmartCardShell::run() {const std::vector<std::string> actions = {- "π Probe",- "π‘οΈ Security check",- "π Unlock card",- "π PSC Set",- "π PSC Get",- "βοΈ Write",- "ποΈ Dump",- "π« Protect",- "πͺ Exit Shell"+ " π Probe",+ " π‘οΈ Security check",+ " π Unlock card",+ " π PSC Set",+ " π PSC Get",+ " βοΈ Write",+ " ποΈ Dump",+ " π« Protect",+ " πͺ Exit Shell"};while (true) {terminalView.println("\n=== SLE44XX SmartCard Shell ===");int index = userInputManager.readValidatedChoiceIndex("Select a SmartCard action", actions, 0);- if (index == -1 || actions[index] == "πͺ Exit Shell") {+ if (index == -1 || actions[index] == " πͺ Exit Shell") {terminalView.println("Exiting SmartCard Shell...\n");break;}diff --git a/src/Shells/SpiFlashShell.cpp b/src/Shells/SpiFlashShell.cppindex 0112c283..04857c60 100644--- a/src/Shells/SpiFlashShell.cpp+++ b/src/Shells/SpiFlashShell.cpp@@ -26,7 +26,7 @@ void SpiFlashShell::run() {int index = userInputManager.readValidatedChoiceIndex("Select a SPI Flash action", actions, 0);// Quit- if (index == -1 || actions[index] == "πͺ Exit Shell") {+ if (index == -1 || actions[index] == " πͺ Exit Shell") {terminalView.println("Exiting SPI Flash Shell...\n");break;}diff --git a/src/Shells/SpiFlashShell.h b/src/Shells/SpiFlashShell.hindex 85a67d53..c14584cb 100644--- a/src/Shells/SpiFlashShell.h+++ b/src/Shells/SpiFlashShell.h@@ -24,15 +24,15 @@ public:private:const std::vector<std::string> actions = {- "π Probe Flash",- "π Analyze Flash",- "π Search string",- "π Extract strings",- "π Read bytes",- "βοΈ Write bytes",- "ποΈ Dump Flash",- "π£ Erase Flash",- "πͺ Exit Shell"+ " π Probe Flash",+ " π Analyze Flash",+ " π Search string",+ " π Extract strings",+ " π Read bytes",+ " βοΈ Write bytes",+ " ποΈ Dump Flash",+ " π£ Erase Flash",+ " πͺ Exit Shell"};SpiService& spiService;