Skip to content

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

add shell to provider

Geo074123879a58
diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cpp
index 9ff33683..0493a89b 100644
--- a/src/Providers/DependencyProvider.cpp
+++ b/src/Providers/DependencyProvider.cpp
@@ -35,6 +35,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
userInputManager(terminalView, terminalInput, argTransformer),
sdCardShell(sdService, terminalView, terminalInput, argTransformer),
spiFlashShell(spiService, terminalView, terminalInput, argTransformer, userInputManager, binaryAnalyzeManager),
+ smartCardShell(twoWireService, terminalView, terminalInput, argTransformer, userInputManager),
universalRemoteShell(terminalView, terminalInput, infraredService, argTransformer, userInputManager),
i2cEepromShell(terminalView, terminalInput, i2cService, argTransformer, userInputManager, binaryAnalyzeManager),
horizontalSelector(deviceView, deviceInput),
@@ -47,7 +48,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
hdUartController(terminalView, terminalInput, deviceInput, hdUartService, uartService, argTransformer, userInputManager),
spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell, spiFlashShell),
jtagController(terminalView, terminalInput, jtagService, userInputManager),
- twoWireController(terminalView, terminalInput, userInputManager, twoWireService),
+ twoWireController(terminalView, terminalInput, userInputManager, twoWireService, smartCardShell),
threeWireController(terminalView, terminalInput, userInputManager, threeWireService, argTransformer),
dioController(terminalView, terminalInput, pinService, argTransformer),
ledController(terminalView, terminalInput, ledService, argTransformer, userInputManager),
diff --git a/src/Providers/DependencyProvider.h b/src/Providers/DependencyProvider.h
index b32cff07..daf53f9e 100644
--- a/src/Providers/DependencyProvider.h
+++ b/src/Providers/DependencyProvider.h
@@ -57,6 +57,7 @@ and injecting shared instances of core components
#include "Shells/UniversalRemoteShell.h"
#include "Shells/I2cEepromShell.h"
#include "Shells/SpiFlashShell.h"
+#include "Shells/SmartCardShell.h"
#include "Config/TerminalTypeConfigurator.h"
class DependencyProvider
@@ -131,6 +132,7 @@ public:
UniversalRemoteShell &getUniversalRemoteShell();
I2cEepromShell &getI2cEepromShell();
SpiFlashShell &getSpiFlashShell();
+ SmartCardShell &getSmartCardShell();
// Selectors
HorizontalSelector &getHorizontalSelector();
@@ -205,6 +207,7 @@ private:
UniversalRemoteShell universalRemoteShell;
I2cEepromShell i2cEepromShell;
SpiFlashShell spiFlashShell;
+ SmartCardShell smartCardShell;
// Selectors
HorizontalSelector horizontalSelector;