A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
refactor help for all controllers to use the dedicated shell
Geo15f43b8fb6b9
diff --git a/src/Abstracts/ANetworkController.cpp b/src/Abstracts/ANetworkController.cppindex 07150504..7f80d5f3 100644--- a/src/Abstracts/ANetworkController.cpp+++ b/src/Abstracts/ANetworkController.cpp@@ -20,7 +20,8 @@ ANetworkController::ANetworkController(ArgTransformer& argTransformer,JsonTransformer& jsonTransformer,UserInputManager& userInputManager,- ModbusShell& modbusShell+ ModbusShell& modbusShell,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),@@ -38,7 +39,8 @@ ANetworkController::ANetworkController(argTransformer(argTransformer),jsonTransformer(jsonTransformer),userInputManager(userInputManager),- modbusShell(modbusShell)+ modbusShell(modbusShell),+ helpShell(helpShell){}@@ -709,22 +711,4 @@ void ANetworkController::handleModbus(const TerminalCommand &cmd)// Start shellterminalView.println("Starting Modbus shell...");modbusShell.run(host, port);-}--/*-Help-*/-void ANetworkController::handleHelp()-{- terminalView.println(" ping <host>");- terminalView.println(" discovery");- terminalView.println(" ssh <host> <user> <password> [port]");- terminalView.println(" telnet <host> [port]");- terminalView.println(" nc <host> <port>");- terminalView.println(" nmap <host> [-p ports]");- terminalView.println(" modbus <host> [port]");- terminalView.println(" http get <url>");- terminalView.println(" http analyze <url>");- terminalView.println(" lookup mac <addr>");- terminalView.println(" lookup ip <addr or url>");}\ No newline at end of filediff --git a/src/Abstracts/ANetworkController.h b/src/Abstracts/ANetworkController.hindex 46c0abd7..03589229 100644--- a/src/Abstracts/ANetworkController.h+++ b/src/Abstracts/ANetworkController.h@@ -22,6 +22,7 @@#include "States/GlobalState.h"#include "Models/TerminalCommand.h"#include "Shells/ModbusShell.h"+#include "Shells/HelpShell.h"class ANetworkController {public:@@ -43,7 +44,8 @@ public:ArgTransformer& argTransformer,JsonTransformer& jsonTransformer,UserInputManager& userInputManager,- ModbusShell& modbusShell+ ModbusShell& modbusShell,+ HelpShell& helpShell);protected:@@ -54,7 +56,6 @@ protected:void handleDiscovery(const TerminalCommand& cmd);void handleTelnet(const TerminalCommand& cmd);void handleModbus(const TerminalCommand& cmd);- void handleHelp();// HTTPvoid handleHttp(const TerminalCommand &cmd);@@ -86,6 +87,7 @@ protected:TelnetService& telnetService;ModbusShell& modbusShell;+ HelpShell& helpShell;ArgTransformer& argTransformer;JsonTransformer& jsonTransformer;diff --git a/src/Controllers/BluetoothController.cpp b/src/Controllers/BluetoothController.cppindex db42b00e..2914d31a 100644--- a/src/Controllers/BluetoothController.cpp+++ b/src/Controllers/BluetoothController.cpp@@ -9,13 +9,15 @@ BluetoothController::BluetoothController(IInput& deviceInput,BluetoothService& bluetoothService,ArgTransformer& argTransformer,- UserInputManager& userInputManager+ UserInputManager& userInputManager,+ HelpShell& helpShell) : terminalView(terminalView),terminalInput(terminalInput),deviceInput(deviceInput),bluetoothService(bluetoothService),argTransformer(argTransformer),- userInputManager(userInputManager) {}+ userInputManager(userInputManager),+ helpShell(helpShell) {}/*Entry point for BT command@@ -351,19 +353,8 @@ void BluetoothController::handleConfig() {Help*/void BluetoothController::handleHelp() {- terminalView.println("Bluetooth commands:");- terminalView.println(" scan");- terminalView.println(" pair <mac>");- terminalView.println(" spoof <mac>");- terminalView.println(" sniff");- terminalView.println(" status");- terminalView.println(" server");- terminalView.println(" keyboard");- terminalView.println(" keyboard <text>");- terminalView.println(" mouse <x> <y>");- terminalView.println(" mouse click");- terminalView.println(" mouse jiggle [ms]");- terminalView.println(" reset");+ terminalView.println("\nUnknown command. Available Bluetooth commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/BluetoothController.h b/src/Controllers/BluetoothController.hindex 22bc9d56..a8836deb 100644--- a/src/Controllers/BluetoothController.h+++ b/src/Controllers/BluetoothController.h@@ -8,6 +8,7 @@#include "Models/TerminalCommand.h"#include "Managers/UserInputManager.h"#include "States/GlobalState.h"+#include "Shells/HelpShell.h"class BluetoothController {public:@@ -17,7 +18,8 @@ public:IInput& deviceInput,BluetoothService& bluetoothService,ArgTransformer& argTransformer,- UserInputManager& userInputManager+ UserInputManager& userInputManager,+ HelpShell& helpShell);// Entry point for BT command@@ -33,6 +35,7 @@ private:BluetoothService& bluetoothService;ArgTransformer& argTransformer;UserInputManager& userInputManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/CanController.cpp b/src/Controllers/CanController.cppindex aa6a0c50..ce88ffb3 100644--- a/src/Controllers/CanController.cpp+++ b/src/Controllers/CanController.cpp@@ -1,9 +1,17 @@#include "CanController.h"-CanController::CanController(ITerminalView& terminalView, IInput& terminalInput, UserInputManager& userInputManager,- CanService& canService, ArgTransformer& argTransformer)- : terminalView(terminalView), terminalInput(terminalInput), userInputManager(userInputManager),- canService(canService), argTransformer(argTransformer) {}+CanController::CanController(ITerminalView& terminalView,+ IInput& terminalInput,+ UserInputManager& userInputManager,+ CanService& canService,+ ArgTransformer& argTransformer,+ HelpShell& helpShell)+ : terminalView(terminalView),+ terminalInput(terminalInput),+ userInputManager(userInputManager),+ canService(canService),+ argTransformer(argTransformer),+ helpShell(helpShell) {}/*Entry point for CAN commands@@ -153,12 +161,8 @@ void CanController::handleReceive(const TerminalCommand& cmd) {Help message for CAN commands*/void CanController::handleHelp() {- terminalView.println("Available CAN commands:");- terminalView.println(" sniff");- terminalView.println(" send [id]");- terminalView.println(" receive [id]");- terminalView.println(" status");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available CAN commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/CanController.h b/src/Controllers/CanController.hindex 275e17b8..a7ba05f2 100644--- a/src/Controllers/CanController.h+++ b/src/Controllers/CanController.h@@ -8,11 +8,12 @@#include "Transformers/ArgTransformer.h"#include "Managers/UserInputManager.h"#include "States/GlobalState.h"+#include "Shells/HelpShell.h"class CanController {public:CanController(ITerminalView& terminalView, IInput& terminalInput, UserInputManager& userInputManager,- CanService& canService, ArgTransformer& argTransformer);+ CanService& canService, ArgTransformer& argTransformer, HelpShell& helpShell);// Entry point to handle CAN commandsvoid handleCommand(const TerminalCommand& cmd);@@ -26,6 +27,7 @@ private:CanService& canService;ArgTransformer& argTransformer;UserInputManager& userInputManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/DioController.cpp b/src/Controllers/DioController.cppindex 884a3747..c719e342 100644--- a/src/Controllers/DioController.cpp+++ b/src/Controllers/DioController.cpp@@ -5,8 +5,8 @@/*Constructor*/-DioController::DioController(ITerminalView& terminalView, IInput& terminalInput, PinService& pinService, ArgTransformer& argTransformer)- : terminalView(terminalView), terminalInput(terminalInput), pinService(pinService), argTransformer(argTransformer) {}+DioController::DioController(ITerminalView& terminalView, IInput& terminalInput, PinService& pinService, ArgTransformer& argTransformer, HelpShell& helpShell)+ : terminalView(terminalView), terminalInput(terminalInput), pinService(pinService), argTransformer(argTransformer), helpShell(helpShell) {}/*Entry point to handle a DIO command@@ -496,19 +496,8 @@ void DioController::handleJamPin(const TerminalCommand& cmd) {Help*/void DioController::handleHelp() {- terminalView.println("Unknown DIO command. Usage:");- terminalView.println(" sniff <pin>");- terminalView.println(" read <pin>");- terminalView.println(" set <pin> <H/L/I/O>");- terminalView.println(" pullup <pin>");- terminalView.println(" pulldown <pin>");- terminalView.println(" pwm <pin> <freq> <duty>");- terminalView.println(" servo <pin> <angle>");- terminalView.println(" measure <pin> [ms]");- terminalView.println(" pulse <pin> <us>");- terminalView.println(" toggle <pin> <ms>");- terminalView.println(" jam <pin> [min_us] [max_us]");- terminalView.println(" reset <pin>");+ terminalView.println("\nUnknown command. Available DIO commands:");+ helpShell.run(state.getCurrentMode(), false);}bool DioController::isPinAllowed(uint8_t pin, const std::string& context) {diff --git a/src/Controllers/DioController.h b/src/Controllers/DioController.hindex 8d067fb0..004a91be 100644--- a/src/Controllers/DioController.h+++ b/src/Controllers/DioController.h@@ -8,11 +8,12 @@#include "Models/TerminalCommand.h"#include "States/GlobalState.h"#include "Transformers/ArgTransformer.h"+#include "Shells/HelpShell.h"class DioController {public:// Constructor- DioController(ITerminalView& terminalView, IInput& terminalInput, PinService& pinService, ArgTransformer& argTransformer);+ DioController(ITerminalView& terminalView, IInput& terminalInput, PinService& pinService, ArgTransformer& argTransformer, HelpShell& helpShell);// Entry point to handle a DIO commandvoid handleCommand(const TerminalCommand& cmd);@@ -25,6 +26,7 @@ private:IInput& terminalInput;PinService& pinService;ArgTransformer& argTransformer;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();// Read digital value from a pindiff --git a/src/Controllers/EthernetController.cpp b/src/Controllers/EthernetController.cppindex 2f098114..7d4c1cbd 100644--- a/src/Controllers/EthernetController.cpp+++ b/src/Controllers/EthernetController.cpp@@ -176,12 +176,8 @@ void EthernetController::handleReset()Help*/void EthernetController::handleHelp() {- terminalView.println("Ethernet commands:");- terminalView.println(" status");- terminalView.println(" connect");- ANetworkController::handleHelp();- terminalView.println(" reset");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available Ethernet commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/EthernetController.h b/src/Controllers/EthernetController.hindex c618363d..2d0d5447 100644--- a/src/Controllers/EthernetController.h+++ b/src/Controllers/EthernetController.h@@ -41,7 +41,7 @@ private:// Hard reset the W5500 (via RST)void handleReset();- // Available commands+ // Help message for Ethernet commandsvoid handleHelp();private:diff --git a/src/Controllers/HdUartController.cpp b/src/Controllers/HdUartController.cppindex c84e1535..4326ac36 100644--- a/src/Controllers/HdUartController.cpp+++ b/src/Controllers/HdUartController.cpp@@ -4,9 +4,11 @@Constructor*/HdUartController::HdUartController(ITerminalView& terminalView, IInput& terminalInput, IInput& deviceInput,- HdUartService& hdUartService, UartService& uartService, ArgTransformer& argTransformer, UserInputManager& userInputManager)+ HdUartService& hdUartService, UartService& uartService, ArgTransformer& argTransformer,+ UserInputManager& userInputManager, HelpShell& helpShell): terminalView(terminalView), terminalInput(terminalInput), deviceInput(deviceInput),- hdUartService(hdUartService), uartService(uartService), argTransformer(argTransformer), userInputManager(userInputManager) {}+ hdUartService(hdUartService), uartService(uartService), argTransformer(argTransformer),+ userInputManager(userInputManager), helpShell(helpShell) {}/*Entry point for HDUART commands@@ -99,10 +101,8 @@ void HdUartController::handleConfig() {Help*/void HdUartController::handleHelp() {- terminalView.println("Unknown HDUART command. Usage:");- terminalView.println(" bridge Interactive mode");- terminalView.println(" config Set TX/RX pin, baud etc.");- terminalView.println(" [0x1 r:255] Instruction syntax");+ terminalView.println("\nUnknown command. Available HDUART commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/HdUartController.h b/src/Controllers/HdUartController.hindex 732abd45..17953079 100644--- a/src/Controllers/HdUartController.h+++ b/src/Controllers/HdUartController.h@@ -9,11 +9,13 @@#include "Transformers/ArgTransformer.h"#include "States/GlobalState.h"#include "Managers/UserInputManager.h"+#include "Shells/HelpShell.h"class HdUartController {public:HdUartController(ITerminalView& terminalView, IInput& terminalInput, IInput& deviceInput,- HdUartService& hdUartService, UartService& uartService, ArgTransformer& argTransformer, UserInputManager& userInputManager);+ HdUartService& hdUartService, UartService& uartService, ArgTransformer& argTransformer,+ UserInputManager& userInputManager, HelpShell& helpShell);// Entry point for HDUART commandvoid handleCommand(const TerminalCommand& cmd);@@ -32,6 +34,7 @@ private:UartService& uartService;ArgTransformer& argTransformer;UserInputManager& userInputManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/I2cController.cpp b/src/Controllers/I2cController.cppindex 0810224b..fba4f839 100644--- a/src/Controllers/I2cController.cpp+++ b/src/Controllers/I2cController.cpp@@ -9,14 +9,16 @@ I2cController::I2cController(I2cService& i2cService,ArgTransformer& argTransformer,UserInputManager& userInputManager,- I2cEepromShell& eepromShell+ I2cEepromShell& eepromShell,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),i2cService(i2cService),argTransformer(argTransformer),userInputManager(userInputManager),- eepromShell(eepromShell)+ eepromShell(eepromShell),+ helpShell(helpShell){}/*@@ -811,26 +813,8 @@ void I2cController::handleEeprom(const TerminalCommand& cmd) {Help*/void I2cController::handleHelp() {- terminalView.println("Unknown I2C command. Usage:");- terminalView.println(" scan");- terminalView.println(" discover");- terminalView.println(" ping <addr>");- terminalView.println(" identify <addr>");- terminalView.println(" sniff");- terminalView.println(" slave <addr>");- terminalView.println(" read <addr> [reg]");- terminalView.println(" write <addr> [reg] [val]");- terminalView.println(" dump <addr> [len]");- terminalView.println(" glitch <addr>");- terminalView.println(" flood <addr>");- terminalView.println(" health <addr>");- terminalView.println(" jam");- terminalView.println(" recover");- terminalView.println(" monitor <addr> [delay_ms]");- terminalView.println(" eeprom [addr]");- terminalView.println(" swap");- terminalView.println(" config");- terminalView.println(" raw instructions, e.g: [0x13 0x4B r:8]");+ terminalView.println("\nUnknown command. Available I2C commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/I2cController.h b/src/Controllers/I2cController.hindex d4445ee3..58d99376 100644--- a/src/Controllers/I2cController.h+++ b/src/Controllers/I2cController.h@@ -13,12 +13,13 @@#include "Managers/UserInputManager.h"#include "Vendors/i2c_sniffer.h"#include "Shells/I2cEepromShell.h"+#include "Shells/HelpShell.h"#include "Data/I2cKnownAdresses.h"class I2cController {public:// Constructor- I2cController(ITerminalView& terminalView, IInput& terminalInput, I2cService& i2cService, ArgTransformer& argTransformer, UserInputManager& userInputManager, I2cEepromShell& eepromShell);+ I2cController(ITerminalView& terminalView, IInput& terminalInput, I2cService& i2cService, ArgTransformer& argTransformer, UserInputManager& userInputManager, I2cEepromShell& eepromShell, HelpShell& helpShell);// Entry point for I2C commandvoid handleCommand(const TerminalCommand& cmd);@@ -60,6 +61,7 @@ private:ArgTransformer& argTransformer;UserInputManager& userInputManager;I2cEepromShell& eepromShell;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/I2sController.cpp b/src/Controllers/I2sController.cppindex 9323054c..ae3aa5ee 100644--- a/src/Controllers/I2sController.cpp+++ b/src/Controllers/I2sController.cpp@@ -5,10 +5,10 @@ Constructor*/I2sController::I2sController(ITerminalView& terminalView, IInput& terminalInput,I2sService& i2sService, ArgTransformer& argTransformer,- UserInputManager& userInputManager)+ UserInputManager& userInputManager, HelpShell& helpShell): terminalView(terminalView), terminalInput(terminalInput),i2sService(i2sService), argTransformer(argTransformer),- userInputManager(userInputManager) {}+ userInputManager(userInputManager), helpShell(helpShell) {}void I2sController::handleCommand(const TerminalCommand& cmd) {if (cmd.getRoot() == "config") {@@ -370,12 +370,8 @@ void I2sController::handleConfig() {Help*/void I2sController::handleHelp() {- terminalView.println("Available I2S commands:");- terminalView.println(" play <freq> [duration]");- terminalView.println(" record ");- terminalView.println(" test <speaker|mic>");- terminalView.println(" reset");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available I2S commands:");+ helpShell.run(state.getCurrentMode(), false);}diff --git a/src/Controllers/I2sController.h b/src/Controllers/I2sController.hindex ba341cd3..394d5893 100644--- a/src/Controllers/I2sController.h+++ b/src/Controllers/I2sController.h@@ -9,12 +9,13 @@#include "Models/TerminalCommand.h"#include "States/GlobalState.h"#include "Data/PcmSoundTestComplete.h"+#include "Shells/HelpShell.h"class I2sController {public:I2sController(ITerminalView& terminalView, IInput& terminalInput,I2sService& i2sService, ArgTransformer& argTransformer,- UserInputManager& userInputManager);+ UserInputManager& userInputManager, HelpShell& helpShell);// Entry point for I2S cmdvoid handleCommand(const TerminalCommand& cmd);@@ -52,6 +53,7 @@ private:I2sService& i2sService;ArgTransformer& argTransformer;UserInputManager& userInputManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;};diff --git a/src/Controllers/InfraredController.cpp b/src/Controllers/InfraredController.cppindex 677f89da..45228cfc 100644--- a/src/Controllers/InfraredController.cpp+++ b/src/Controllers/InfraredController.cpp@@ -12,7 +12,8 @@ InfraredController::InfraredController(ArgTransformer& argTransformer,InfraredRemoteTransformer& infraredRemoteTransformer,UserInputManager& userInputManager,- UniversalRemoteShell& universalRemoteShell+ UniversalRemoteShell& universalRemoteShell,+ HelpShell& helpShell): terminalView(view),terminalInput(terminalInput),@@ -21,7 +22,8 @@ InfraredController::InfraredController(argTransformer(argTransformer),infraredRemoteTransformer(infraredRemoteTransformer),userInputManager(userInputManager),- universalRemoteShell(universalRemoteShell)+ universalRemoteShell(universalRemoteShell),+ helpShell(helpShell){}/*@@ -632,17 +634,8 @@ void InfraredController::handleJam() {Help*/void InfraredController::handleHelp() {- terminalView.println("Unknown INFRARED command. Usage:");- terminalView.println(" send <addr> <subadd> <cmd>");- terminalView.println(" receive");- terminalView.println(" setprotocol");- terminalView.println(" devicebgone");- terminalView.println(" remote");- terminalView.println(" replay");- terminalView.println(" record");- terminalView.println(" load");- terminalView.println(" jam");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available INFRARED commands:");+ helpShell.run(state.getCurrentMode(), false);}void InfraredController::ensureConfigured() {diff --git a/src/Controllers/InfraredController.h b/src/Controllers/InfraredController.hindex 27d897d6..b8912961 100644--- a/src/Controllers/InfraredController.h+++ b/src/Controllers/InfraredController.h@@ -16,6 +16,7 @@#include "Managers/UserInputManager.h"#include "States/GlobalState.h"#include "Shells/UniversalRemoteShell.h"+#include "Shells/HelpShell.h"class InfraredController {public:@@ -23,7 +24,7 @@ public:InfraredController(ITerminalView& view, IInput& terminalInput,InfraredService& service, LittleFsService& littleFsService,ArgTransformer& argTransformer, InfraredRemoteTransformer& infraredRemoteTransformer,- UserInputManager& userInputManager, UniversalRemoteShell& universalRemoteShell);+ UserInputManager& userInputManager, UniversalRemoteShell& universalRemoteShell, HelpShell& helpShell);// Entry point for Infraredcommand dispatchvoid handleCommand(const TerminalCommand& command);@@ -41,10 +42,11 @@ private:UserInputManager& userInputManager;UniversalRemoteShell& universalRemoteShell;LittleFsService& littleFsService;+ HelpShell& helpShell;+bool configured = false;uint8_t MAX_IR_FRAMES = 64; // Maximum frames to record-// Framesstruct IRFrame {std::vector<uint16_t> timings; // raw ir timingsdiff --git a/src/Controllers/JtagController.cpp b/src/Controllers/JtagController.cppindex 9bdddd8e..f4545647 100644--- a/src/Controllers/JtagController.cpp+++ b/src/Controllers/JtagController.cpp@@ -3,9 +3,17 @@/*Constructor*/-JtagController::JtagController(ITerminalView& terminalView, IInput& terminalInput, JtagService& jtagService, UserInputManager& userInputManager)- : terminalView(terminalView), terminalInput(terminalInput), jtagService(jtagService), userInputManager(userInputManager) {}-+JtagController::JtagController(+ ITerminalView& terminalView,+ IInput& terminalInput,+ JtagService& jtagService,+ UserInputManager& userInputManager,+ HelpShell& helpShell+) : terminalView(terminalView),+ terminalInput(terminalInput),+ jtagService(jtagService),+ userInputManager(userInputManager),+ helpShell(helpShell) {}/*Entry point that handles JTAG commands*/@@ -123,12 +131,8 @@ void JtagController::handleConfig() {Help*/void JtagController::handleHelp() {- terminalView.println("");- terminalView.println("Unknown JTAG command. Usage:");- terminalView.println(" scan swd");- terminalView.println(" scan jtag");- terminalView.println(" config");- terminalView.println("");+ terminalView.println("\nUnknown command. Available JTAG commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/JtagController.h b/src/Controllers/JtagController.hindex 15bf3b06..6c726050 100644--- a/src/Controllers/JtagController.h+++ b/src/Controllers/JtagController.h@@ -6,11 +6,12 @@#include "Services/JtagService.h"#include "States/GlobalState.h"#include "Managers/UserInputManager.h"+#include "Shells/HelpShell.h"class JtagController {public:// Constructor- JtagController(ITerminalView& terminalView, IInput& terminalInput, JtagService& jtagService, UserInputManager& userInputManager);+ JtagController(ITerminalView& terminalView, IInput& terminalInput, JtagService& jtagService, UserInputManager& userInputManager, HelpShell& helpShell);// Entry point for dispatch incoming JTAG commandvoid handleCommand(const TerminalCommand& cmd);@@ -23,6 +24,7 @@ private:IInput& terminalInput;JtagService& jtagService;UserInputManager& userInputManager;+ HelpShell& helpShell;bool configured = false;GlobalState& state = GlobalState::getInstance();diff --git a/src/Controllers/LedController.cpp b/src/Controllers/LedController.cppindex 2060aa8f..4b6df707 100644--- a/src/Controllers/LedController.cpp+++ b/src/Controllers/LedController.cpp@@ -7,9 +7,10 @@ Constructor*/LedController::LedController(ITerminalView& terminalView, IInput& terminalInput,LedService& ledService, ArgTransformer& argTransformer,- UserInputManager& userInputManager)+ UserInputManager& userInputManager, HelpShell& helpShell): terminalView(terminalView), terminalInput(terminalInput),- ledService(ledService), argTransformer(argTransformer), userInputManager(userInputManager) {}+ ledService(ledService), argTransformer(argTransformer),+ userInputManager(userInputManager), helpShell(helpShell) {}/*Command@@ -297,18 +298,8 @@ void LedController::handleSetProtocol() {Help*/void LedController::handleHelp() {- terminalView.println("Unknown LED command. Usage:");- terminalView.println(" scan");- terminalView.println(" fill blue");- terminalView.println(" set 1 red");- terminalView.println(" blink");- terminalView.println(" rainbow");- terminalView.println(" chase");- terminalView.println(" cycle");- terminalView.println(" wave");- terminalView.println(" reset [led num]");- terminalView.println(" setprotocol");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available LED commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/LedController.h b/src/Controllers/LedController.hindex beba08d2..559a1968 100644--- a/src/Controllers/LedController.h+++ b/src/Controllers/LedController.h@@ -9,12 +9,13 @@#include "Transformers/ArgTransformer.h"#include "Managers/UserInputManager.h"#include "States/GlobalState.h"+#include "Shells/HelpShell.h"class LedController {public:LedController(ITerminalView& terminalView, IInput& terminalInput,LedService& ledService, ArgTransformer& argTransformer,- UserInputManager& userInputManager);+ UserInputManager& userInputManager, HelpShell& helpShell);// Dispatch user command for LED modevoid handleCommand(const TerminalCommand& cmd);@@ -58,6 +59,7 @@ private:LedService& ledService;ArgTransformer& argTransformer;UserInputManager& userInputManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/OneWireController.cpp b/src/Controllers/OneWireController.cppindex e83a0d5b..6fa7d813 100644--- a/src/Controllers/OneWireController.cpp+++ b/src/Controllers/OneWireController.cpp@@ -10,7 +10,8 @@ OneWireController::OneWireController(ArgTransformer& argTransformer,UserInputManager& userInputManager,IbuttonShell& ibuttonShell,- OneWireEepromShell& eepromShell+ OneWireEepromShell& eepromShell,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),@@ -18,7 +19,8 @@ OneWireController::OneWireController(argTransformer(argTransformer),userInputManager(userInputManager),ibuttonShell(ibuttonShell),- eepromShell(eepromShell) {+ eepromShell(eepromShell),+ helpShell(helpShell) {}/*@@ -531,18 +533,8 @@ void OneWireController::handleEeprom() {Help*/void OneWireController::handleHelp() {- terminalView.println("Unknown 1Wire command. Usage:");- terminalView.println(" scan");- terminalView.println(" ping");- terminalView.println(" sniff");- terminalView.println(" read");- terminalView.println(" write id [8 bytes]");- terminalView.println(" write sp [8 bytes]");- terminalView.println(" ibutton");- terminalView.println(" eeprom");- terminalView.println(" temp");- terminalView.println(" config");- terminalView.println(" raw instructions, [0X33 r:8] ...");+ terminalView.println("\nUnknown command. Available 1Wire commands:");+ helpShell.run(state.getCurrentMode(), false);}void OneWireController::ensureConfigured() {diff --git a/src/Controllers/OneWireController.h b/src/Controllers/OneWireController.hindex 8df96a41..00bf9638 100644--- a/src/Controllers/OneWireController.h+++ b/src/Controllers/OneWireController.h@@ -11,6 +11,7 @@#include "Managers/UserInputManager.h"#include "Shells/IbuttonShell.h"#include "Shells/OneWireEepromShell.h"+#include "Shells/HelpShell.h"class OneWireController {public:@@ -22,7 +23,8 @@ public:ArgTransformer& argTransformer,UserInputManager& userInputManager,IbuttonShell& ibuttonShell,- OneWireEepromShell& eepromShell+ OneWireEepromShell& eepromShell,+ HelpShell& helpShell);// Entry point for handle command@@ -42,6 +44,7 @@ private:UserInputManager& userInputManager;IbuttonShell& ibuttonShell;OneWireEepromShell& eepromShell;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/Rf24Controller.cpp b/src/Controllers/Rf24Controller.cppindex b61348d0..f7677091 100644--- a/src/Controllers/Rf24Controller.cpp+++ b/src/Controllers/Rf24Controller.cpp@@ -299,11 +299,6 @@ void Rf24Controller::handleConfig() {Help*/void Rf24Controller::handleHelp() {- terminalView.println("RF24 commands:");- terminalView.println(" scan");- terminalView.println(" sniff");- terminalView.println(" sweep");- terminalView.println(" jam");- terminalView.println(" setchannel");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available RF24 commands:");+ helpShell.run(state.getCurrentMode(), false);}\ No newline at end of filediff --git a/src/Controllers/Rf24Controller.h b/src/Controllers/Rf24Controller.hindex c623e11c..d03cd1f4 100644--- a/src/Controllers/Rf24Controller.h+++ b/src/Controllers/Rf24Controller.h@@ -13,6 +13,7 @@#include "Services/Rf24Service.h"#include "Services/PinService.h"#include "Data/Rf24Channels.h"+#include "Shells/HelpShell.h"class Rf24Controller {public:@@ -22,14 +23,16 @@ public:Rf24Service& rf24Service,PinService& pinService,ArgTransformer& argTransformer,- UserInputManager& userInputManager)+ UserInputManager& userInputManager,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),deviceView(deviceView),rf24Service(rf24Service),pinService(pinService),argTransformer(argTransformer),- userInputManager(userInputManager) {}+ userInputManager(userInputManager),+ helpShell(helpShell) {}// Entry point for rf24 commandsvoid handleCommand(const TerminalCommand& cmd);@@ -55,6 +58,7 @@ private:PinService& pinService;ArgTransformer& argTransformer;UserInputManager& userInputManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/RfidController.cpp b/src/Controllers/RfidController.cppindex 2652d447..b4b516dc 100644--- a/src/Controllers/RfidController.cpp+++ b/src/Controllers/RfidController.cpp@@ -8,12 +8,14 @@ RfidController::RfidController(IInput& input,RfidService& rfidService,UserInputManager& uim,- ArgTransformer& transformer+ ArgTransformer& transformer,+ HelpShell& helpShell) : terminalView(view),terminalInput(input),rfidService(rfidService),userInputManager(uim),- argTransformer(transformer) {}+ argTransformer(transformer),+ helpShell(helpShell) {}/*Entry point for command@@ -341,12 +343,8 @@ void RfidController::handleConfig() {Help*/void RfidController::handleHelp() {- terminalView.println("RFID commands:");- terminalView.println(" read");- terminalView.println(" write");- terminalView.println(" clone");- terminalView.println(" erase");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available RFID commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/RfidController.h b/src/Controllers/RfidController.hindex 0134db74..ad083445 100644--- a/src/Controllers/RfidController.h+++ b/src/Controllers/RfidController.h@@ -10,6 +10,7 @@#include "Managers/UserInputManager.h"#include "Transformers/ArgTransformer.h"#include "States/GlobalState.h"+#include "Shells/HelpShell.h"class RfidController {public:@@ -18,7 +19,8 @@ public:IInput& input,RfidService& rfidService,UserInputManager& uim,- ArgTransformer& transformer+ ArgTransformer& transformer,+ HelpShell& helpShell);// Entry point for commands@@ -46,5 +48,6 @@ bool configured = false;RfidService& rfidService;UserInputManager& userInputManager;ArgTransformer& argTransformer;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();};diff --git a/src/Controllers/SpiController.cpp b/src/Controllers/SpiController.cppindex b6c9c6a4..01caf3b2 100644--- a/src/Controllers/SpiController.cpp+++ b/src/Controllers/SpiController.cpp@@ -6,7 +6,8 @@ ConstructorSpiController::SpiController(ITerminalView& terminalView, IInput& terminalInput,SpiService& spiService, SdService& sdService, ArgTransformer& argTransformer,UserInputManager& userInputManager, BinaryAnalyzeManager& binaryAnalyzeManager,- SdCardShell& sdCardShell, SpiFlashShell& spiFlashShell, SpiEepromShell& spiEepromShell)+ SdCardShell& sdCardShell, SpiFlashShell& spiFlashShell, SpiEepromShell& spiEepromShell,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),spiService(spiService),@@ -16,7 +17,8 @@ SpiController::SpiController(ITerminalView& terminalView, IInput& terminalInput,binaryAnalyzeManager(binaryAnalyzeManager),sdCardShell(sdCardShell),spiFlashShell(spiFlashShell),- spiEepromShell(spiEepromShell)+ spiEepromShell(spiEepromShell),+ helpShell(helpShell){}/*@@ -228,16 +230,8 @@ void SpiController::handleSdCard() {Help*/void SpiController::handleHelp() {- terminalView.println("");- terminalView.println("Unknown SPI command. Usage:");- terminalView.println(" sniff");- terminalView.println(" sdcard");- terminalView.println(" slave");- terminalView.println(" flash");- terminalView.println(" eeprom");- terminalView.println(" config");- terminalView.println(" raw instructions, e.g: [0x9F r:3]");- terminalView.println("");+ terminalView.println("\nUnknown command. Available SPI commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/SpiController.h b/src/Controllers/SpiController.hindex b8ea3b17..50143ecc 100644--- a/src/Controllers/SpiController.h+++ b/src/Controllers/SpiController.h@@ -14,6 +14,7 @@#include "States/GlobalState.h"#include "Data/FlashDatabase.h"#include "Shells/SpiEepromShell.h"+#include "Shells/HelpShell.h"class SpiController {public:@@ -27,7 +28,8 @@ public:BinaryAnalyzeManager& binaryAnalyzeManager,SdCardShell& sdCardShell,SpiFlashShell& spiFlashShell,- SpiEepromShell& spiEepromShell+ SpiEepromShell& spiEepromShell,+ HelpShell& helpShell);// Entry point for handle raw user command@@ -50,6 +52,7 @@ private:SdCardShell& sdCardShell;SpiFlashShell& spiFlashShell;SpiEepromShell& spiEepromShell;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/SubGhzController.cpp b/src/Controllers/SubGhzController.cppindex 8cb55aa3..7802781d 100644--- a/src/Controllers/SubGhzController.cpp+++ b/src/Controllers/SubGhzController.cpp@@ -840,17 +840,6 @@ void SubGhzController::ensureConfigured() {Help*/void SubGhzController::handleHelp() {- terminalView.println("SubGHz commands:");- terminalView.println(" scan");- terminalView.println(" sweep");- terminalView.println(" sniff");- terminalView.println(" decode");- terminalView.println(" replay");- terminalView.println(" jam");- terminalView.println(" bruteforce");- terminalView.println(" trace");- terminalView.println(" load");- terminalView.println(" listen");- terminalView.println(" setfrequency");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available SUBGHZ commands:");+ helpShell.run(state.getCurrentMode(), false);}diff --git a/src/Controllers/SubGhzController.h b/src/Controllers/SubGhzController.hindex ea138518..87e3af49 100644--- a/src/Controllers/SubGhzController.h+++ b/src/Controllers/SubGhzController.h@@ -20,6 +20,7 @@#include "Services/LittleFsService.h"#include "Services/I2sService.h"#include "Data/SubGhzProtocols.h"+#include "Shells/HelpShell.h"class SubGhzController {public:@@ -33,7 +34,8 @@ public:ArgTransformer& argTransformer,SubGhzTransformer& subGhzTransformer,UserInputManager& userInputManager,- SubGhzAnalyzeManager& subGhzAnalyzeManager)+ SubGhzAnalyzeManager& subGhzAnalyzeManager,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),deviceView(deviceView),@@ -44,7 +46,8 @@ public:argTransformer(argTransformer),subGhzTransformer(subGhzTransformer),userInputManager(userInputManager),- subGhzAnalyzeManager(subGhzAnalyzeManager) {}+ subGhzAnalyzeManager(subGhzAnalyzeManager),+ helpShell(helpShell) {}// Entry point for subghz commandsvoid handleCommand(const TerminalCommand& cmd);@@ -107,6 +110,7 @@ private:SubGhzTransformer& subGhzTransformer;UserInputManager& userInputManager;SubGhzAnalyzeManager& subGhzAnalyzeManager;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;diff --git a/src/Controllers/ThreeWireController.cpp b/src/Controllers/ThreeWireController.cppindex d0214e08..928b3734 100644--- a/src/Controllers/ThreeWireController.cpp+++ b/src/Controllers/ThreeWireController.cpp@@ -9,13 +9,15 @@ ThreeWireController::ThreeWireController(UserInputManager& userInputManager,ThreeWireService& threeWireService,ArgTransformer& argTransformer,- ThreeWireEepromShell& threeWireEepromShell)+ ThreeWireEepromShell& threeWireEepromShell,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),userInputManager(userInputManager),threeWireService(threeWireService),argTransformer(argTransformer),- threeWireEepromShell(threeWireEepromShell) {}+ threeWireEepromShell(threeWireEepromShell),+ helpShell(helpShell) {}/*Entry point for command@@ -44,9 +46,8 @@ void ThreeWireController::handleEeprom(const TerminalCommand& cmd) {Help*/void ThreeWireController::handleHelp() {- terminalView.println("Unknown 3WIRE command. Usage:");- terminalView.println(" eeprom");- terminalView.println(" config");+ terminalView.println("\nUnknown command. Available 3WIRE commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/ThreeWireController.h b/src/Controllers/ThreeWireController.hindex 3010875b..a2259953 100644--- a/src/Controllers/ThreeWireController.h+++ b/src/Controllers/ThreeWireController.h@@ -13,6 +13,7 @@#include "Managers/UserInputManager.h"#include "Transformers/ArgTransformer.h"#include "Shells/ThreeWireEepromShell.h"+#include "Shells/HelpShell.h"class ThreeWireController {public:@@ -22,7 +23,8 @@ public:UserInputManager& userInputManager,ThreeWireService& threeWireService,ArgTransformer& argTransformer,- ThreeWireEepromShell& threeWireEepromShell+ ThreeWireEepromShell& threeWireEepromShell,+ HelpShell& helpShell);// Entry point for command handling@@ -41,6 +43,7 @@ private:UserInputManager& userInputManager;ArgTransformer& argTransformer;ThreeWireEepromShell& threeWireEepromShell;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;bool org8 = true;diff --git a/src/Controllers/TwoWireController.cpp b/src/Controllers/TwoWireController.cppindex 0eba36af..d2a7cf29 100644--- a/src/Controllers/TwoWireController.cpp+++ b/src/Controllers/TwoWireController.cpp@@ -8,13 +8,15 @@ TwoWireController::TwoWireController(IInput& terminalInput,UserInputManager& userInputManager,TwoWireService& twoWireService,- SmartCardShell& smartCardShell+ SmartCardShell& smartCardShell,+ HelpShell& helpShell): terminalView(terminalView), terminalInput(terminalInput), userInputManager(userInputManager), twoWireService(twoWireService), smartCardShell(smartCardShell)+ , helpShell(helpShell){}@@ -152,11 +154,8 @@ void TwoWireController::handleConfig() {Help*/void TwoWireController::handleHelp() {- terminalView.println("Unknown 2Wire command. Usage:");- terminalView.println(" config");- terminalView.println(" sniff");- terminalView.println(" smartcard ");- terminalView.println(" [0xAB r:4] Instruction syntax [NYI]");+ terminalView.println("\nUnknown command. Available 2WIRE commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/TwoWireController.h b/src/Controllers/TwoWireController.hindex 161a146c..31134c4f 100644--- a/src/Controllers/TwoWireController.h+++ b/src/Controllers/TwoWireController.h@@ -10,6 +10,7 @@#include "Managers/UserInputManager.h"#include "States/GlobalState.h"#include "Shells/SmartCardShell.h"+#include "Shells/HelpShell.h"class TwoWireController {public:@@ -19,7 +20,8 @@ public:IInput& terminalInput,UserInputManager& userInputManager,TwoWireService& twoWireService,- SmartCardShell& smartCardShell+ SmartCardShell& smartCardShell,+ HelpShell& helpShell);// Entry point for handle raw user command@@ -49,6 +51,7 @@ private:UserInputManager& userInputManager;TwoWireService& twoWireService;SmartCardShell& smartCardShell;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;};diff --git a/src/Controllers/UartController.cpp b/src/Controllers/UartController.cppindex 10fd53f0..56cd6fff 100644--- a/src/Controllers/UartController.cpp+++ b/src/Controllers/UartController.cpp@@ -13,7 +13,8 @@ UartController::UartController(HdUartService& hdUartService,ArgTransformer& argTransformer,UserInputManager& userInputManager,- UartAtShell& uartAtShell+ UartAtShell& uartAtShell,+ HelpShell& helpShell): terminalView(terminalView),terminalInput(terminalInput),@@ -23,7 +24,8 @@ UartController::UartController(hdUartService(hdUartService),argTransformer(argTransformer),userInputManager(userInputManager),- uartAtShell(uartAtShell)+ uartAtShell(uartAtShell),+ helpShell(helpShell){}@@ -623,23 +625,8 @@ void UartController::handleConfig() {Help*/void UartController::handleHelp() {- terminalView.println("");- terminalView.println("Unknown UART command. Usage:");- terminalView.println(" scan");- terminalView.println(" autobaud");- terminalView.println(" ping");- terminalView.println(" read");- terminalView.println(" write <text>");- terminalView.println(" bridge");- terminalView.println(" at");- terminalView.println(" spam <text> <ms>");- terminalView.println(" glitch");- terminalView.println(" xmodem recv <dest path>");- terminalView.println(" xmodem send <file path>");- terminalView.println(" swap");- terminalView.println(" config");- terminalView.println(" raw instructions, ['AT' D:100 r:128]");- terminalView.println("");+ terminalView.println("\nUnknown command. Available UART commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Controllers/UartController.h b/src/Controllers/UartController.hindex a1e5c7ee..448e8861 100644--- a/src/Controllers/UartController.h+++ b/src/Controllers/UartController.h@@ -14,6 +14,7 @@#include "Transformers/ArgTransformer.h"#include "Managers/UserInputManager.h"#include "Shells/UartAtShell.h"+#include "Shells/HelpShell.h"class UartController {public:@@ -26,7 +27,8 @@ public:HdUartService& hdUartService,ArgTransformer& argTransformer,UserInputManager& userInputManager,- UartAtShell& uartAtShell);+ UartAtShell& uartAtShell,+ HelpShell& helpShell);// Entry point for UART commandvoid handleCommand(const TerminalCommand& cmd);@@ -107,6 +109,7 @@ private:ArgTransformer& argTransformer;UserInputManager& userInputManager;UartAtShell& uartAtShell;+ HelpShell& helpShell;GlobalState& state = GlobalState::getInstance();bool configured = false;bool scanCancelled = false;diff --git a/src/Controllers/UsbS3Controller.cpp b/src/Controllers/UsbS3Controller.cppindex b42cfb28..690b7405 100644--- a/src/Controllers/UsbS3Controller.cpp+++ b/src/Controllers/UsbS3Controller.cpp@@ -283,8 +283,7 @@ void UsbS3Controller::handleReset() {Help*/void UsbS3Controller::handleHelp() {- terminalView.println("Unknown command.");- terminalView.println("Usage:");+ terminalView.println("Unknown command. Available USB commands:");terminalView.println(" stick");terminalView.println(" keyboard");terminalView.println(" keyboard <text>");diff --git a/src/Controllers/WifiController.cpp b/src/Controllers/WifiController.cppindex 828b16fa..28a2d2dd 100644--- a/src/Controllers/WifiController.cpp+++ b/src/Controllers/WifiController.cpp@@ -511,21 +511,8 @@ Help*/void WifiController::handleHelp(){- terminalView.println("WiFi commands:");- terminalView.println(" scan");- terminalView.println(" connect");;- terminalView.println(" sniff");- terminalView.println(" probe");- terminalView.println(" spoof sta <mac>");- terminalView.println(" spoof ap <mac>");- terminalView.println(" deauth [ssid]");- terminalView.println(" status");- terminalView.println(" disconnect");- terminalView.println(" ap <ssid> <password>");- terminalView.println(" ap spam");- ANetworkController::handleHelp();- terminalView.println(" webui");- terminalView.println(" reset");+ terminalView.println("\nUnknown command. Available WiFi commands:");+ helpShell.run(state.getCurrentMode(), false);}/*diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cppindex 44dde572..27d7f69c 100644--- a/src/Providers/DependencyProvider.cpp+++ b/src/Providers/DependencyProvider.cpp@@ -79,26 +79,26 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceViewterminalTypeConfigurator(horizontalSelector),// Controllers- uartController(terminalView, terminalInput, deviceInput, uartService, sdService, hdUartService, argTransformer, userInputManager, uartAtShell),- i2cController(terminalView, terminalInput, i2cService, argTransformer, userInputManager, i2cEepromShell),- oneWireController(terminalView, terminalInput, oneWireService, argTransformer, userInputManager, ibuttonShell, oneWireEepromShell),- infraredController(terminalView, terminalInput, infraredService, littleFsService, argTransformer, infraredTransformer, userInputManager, universalRemoteShell),+ uartController(terminalView, terminalInput, deviceInput, uartService, sdService, hdUartService, argTransformer, userInputManager, uartAtShell, helpShell),+ i2cController(terminalView, terminalInput, i2cService, argTransformer, userInputManager, i2cEepromShell, helpShell),+ oneWireController(terminalView, terminalInput, oneWireService, argTransformer, userInputManager, ibuttonShell, oneWireEepromShell, helpShell),+ infraredController(terminalView, terminalInput, infraredService, littleFsService, argTransformer, infraredTransformer, userInputManager, universalRemoteShell, helpShell),utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, pinAnalyzeManager, argTransformer, sysInfoShell, guideShell, helpShell),- hdUartController(terminalView, terminalInput, deviceInput, hdUartService, uartService, argTransformer, userInputManager),- spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell, spiFlashShell, spiEepromShell),- jtagController(terminalView, terminalInput, jtagService, userInputManager),- twoWireController(terminalView, terminalInput, userInputManager, twoWireService, smartCardShell),- threeWireController(terminalView, terminalInput, userInputManager, threeWireService, argTransformer, threeWireEepromShell),- dioController(terminalView, terminalInput, pinService, argTransformer),- ledController(terminalView, terminalInput, ledService, argTransformer, userInputManager),- bluetoothController(terminalView, terminalInput, deviceInput, bluetoothService, argTransformer, userInputManager),- i2sController(terminalView, terminalInput, i2sService, argTransformer, userInputManager),- wifiController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, telnetService, argTransformer, jsonTransformer, userInputManager, modbusShell),- canController(terminalView, terminalInput, userInputManager, canService, argTransformer),- subGhzController(terminalView, terminalInput, deviceView, subGhzService, pinService, i2sService, littleFsService, argTransformer, subGhzTransformer, userInputManager, subGhzAnalyzeManager),- rfidController(terminalView, terminalInput, rfidService, userInputManager, argTransformer),- rf24Controller(terminalView, terminalInput, deviceView, rf24Service, pinService, argTransformer, userInputManager),- ethernetController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, telnetService, argTransformer, jsonTransformer, userInputManager, modbusShell)+ hdUartController(terminalView, terminalInput, deviceInput, hdUartService, uartService, argTransformer, userInputManager, helpShell),+ spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell, spiFlashShell, spiEepromShell, helpShell),+ jtagController(terminalView, terminalInput, jtagService, userInputManager, helpShell),+ twoWireController(terminalView, terminalInput, userInputManager, twoWireService, smartCardShell, helpShell),+ threeWireController(terminalView, terminalInput, userInputManager, threeWireService, argTransformer, threeWireEepromShell, helpShell),+ dioController(terminalView, terminalInput, pinService, argTransformer, helpShell),+ ledController(terminalView, terminalInput, ledService, argTransformer, userInputManager, helpShell),+ bluetoothController(terminalView, terminalInput, deviceInput, bluetoothService, argTransformer, userInputManager, helpShell),+ i2sController(terminalView, terminalInput, i2sService, argTransformer, userInputManager, helpShell),+ wifiController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, telnetService, argTransformer, jsonTransformer, userInputManager, modbusShell, helpShell),+ canController(terminalView, terminalInput, userInputManager, canService, argTransformer, helpShell),+ subGhzController(terminalView, terminalInput, deviceView, subGhzService, pinService, i2sService, littleFsService, argTransformer, subGhzTransformer, userInputManager, subGhzAnalyzeManager, helpShell),+ rfidController(terminalView, terminalInput, rfidService, userInputManager, argTransformer, helpShell),+ rf24Controller(terminalView, terminalInput, deviceView, rf24Service, pinService, argTransformer, userInputManager, helpShell),+ ethernetController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, telnetService, argTransformer, jsonTransformer, userInputManager, modbusShell, helpShell){}diff --git a/src/Shells/HelpShell.h b/src/Shells/HelpShell.hindex f68772b2..a438bb2f 100644--- a/src/Shells/HelpShell.h+++ b/src/Shells/HelpShell.h@@ -18,7 +18,7 @@ private:private:// menu- void cmdGeneral(const char* header = "General");+ void cmdGeneral();void cmdOneWire();void cmdUart();void cmdHdUart();