Skip to content

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

harmonize spacing for shells

Geo446bb22fed5c
diff --git a/src/Shells/I2cEepromShell.cpp b/src/Shells/I2cEepromShell.cpp
index 4aaafa62..45b37695 100644
--- a/src/Shells/I2cEepromShell.cpp
+++ b/src/Shells/I2cEepromShell.cpp
@@ -37,7 +37,7 @@ void I2cEepromShell::run(uint8_t addr) {
// Select action
terminalView.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.h
index 435af3f8..c42bb7c8 100644
--- a/src/Shells/I2cEepromShell.h
+++ b/src/Shells/I2cEepromShell.h
@@ -23,13 +23,13 @@ public:
private:
// Available actions
const 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 models
diff --git a/src/Shells/IbuttonShell.cpp b/src/Shells/IbuttonShell.cpp
index 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.cpp
index 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.cpp
index 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.h
index 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;