Skip to content

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

add new sys shell and service to provider

Geo64a0dd3a002e
diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cpp
index bd332f4d..592f8804 100644
--- a/src/Providers/DependencyProvider.cpp
+++ b/src/Providers/DependencyProvider.cpp
@@ -9,6 +9,8 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
deviceInput(deviceInput),
usbService(usbService),
usbController(usbController),
+
+ // Services
sdService(),
nvsService(),
ledService(),
@@ -26,13 +28,20 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
sshService(),
jtagService(),
canService(),
+ systemService(),
+
+ // Transformers
commandTransformer(),
instructionTransformer(),
argTransformer(),
webRequestTransformer(),
+
+ // Managers
commandHistoryManager(),
binaryAnalyzeManager(terminalView, terminalInput),
userInputManager(terminalView, terminalInput, argTransformer),
+
+ // Shells
sdCardShell(sdService, terminalView, terminalInput, argTransformer),
spiFlashShell(spiService, terminalView, terminalInput, argTransformer, userInputManager, binaryAnalyzeManager),
spiEepromShell(spiService, terminalView, terminalInput, argTransformer, userInputManager),
@@ -42,13 +51,20 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
i2cEepromShell(terminalView, terminalInput, i2cService, argTransformer, userInputManager, binaryAnalyzeManager),
uartAtShell(terminalView, terminalInput, userInputManager, argTransformer, uartService),
threeWireEepromShell(terminalView, terminalInput, userInputManager, threeWireService, argTransformer),
+ sysInfoShell(terminalView, terminalInput, userInputManager, argTransformer, systemService, wifiService),
+
+ // Selectors
horizontalSelector(deviceView, deviceInput),
+
+ // Configurators
terminalTypeConfigurator(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),
infraredController(terminalView, terminalInput, infraredService, argTransformer, userInputManager, universalRemoteShell),
- utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, argTransformer),
+ utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, argTransformer, sysInfoShell),
hdUartController(terminalView, terminalInput, deviceInput, hdUartService, uartService, argTransformer, userInputManager),
spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell, spiFlashShell, spiEepromShell),
jtagController(terminalView, terminalInput, jtagService, userInputManager),
diff --git a/src/Providers/DependencyProvider.h b/src/Providers/DependencyProvider.h
index d47ee198..09980132 100644
--- a/src/Providers/DependencyProvider.h
+++ b/src/Providers/DependencyProvider.h
@@ -28,6 +28,7 @@ and injecting shared instances of core components
#include "Services/SshService.h"
#include "Services/JtagService.h"
#include "Services/CanService.h"
+#include "Services/SystemService.h"
#include "Services/ThreeWireService.h"
#include "Controllers/UartController.h"
#include "Controllers/I2cController.h"
@@ -62,6 +63,7 @@ and injecting shared instances of core components
#include "Shells/ThreeWireEepromShell.h"
#include "Shells/IbuttonShell.h"
#include "Shells/UartAtShell.h"
+#include "Shells/SysInfoShell.h"
#include "Config/TerminalTypeConfigurator.h"
class DependencyProvider
@@ -101,6 +103,7 @@ public:
NmapService &getNmapService();
JtagService &getJtagService();
CanService &getCanService();
+ SystemService &getSystemService();
// Controllers
UartController &getUartController();
@@ -142,6 +145,7 @@ public:
ThreeWireEepromShell &getThreeWireEepromShell();
IbuttonShell &getIbuttonShell();
UartAtShell &getUartAtShell();
+ SysInfoShell &getSysInfoShell();
// Selectors
HorizontalSelector &getHorizontalSelector();
@@ -182,6 +186,7 @@ private:
NmapService nmapService;
JtagService jtagService;
CanService canService;
+ SystemService systemService;
// Controllers
UartController uartController;
@@ -222,6 +227,7 @@ private:
ThreeWireEepromShell threeWireEepromShell;
IbuttonShell ibuttonShell;
UartAtShell uartAtShell;
+ SysInfoShell sysInfoShell;
// Selectors
HorizontalSelector horizontalSelector;