Skip to content

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

add telnet service to provider

Geo130816d61c66
diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cpp
index f3b9cf8b..dfd9b89b 100644
--- a/src/Providers/DependencyProvider.cpp
+++ b/src/Providers/DependencyProvider.cpp
@@ -32,6 +32,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
systemService(),
ethernetService(),
httpService(),
+ telnetService(),
// Transformers
commandTransformer(),
@@ -78,9 +79,9 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
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, argTransformer, jsonTransformer, userInputManager),
+ wifiController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, telnetService, argTransformer, jsonTransformer, userInputManager),
canController(terminalView, terminalInput, userInputManager, canService, argTransformer),
- ethernetController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, argTransformer, jsonTransformer, userInputManager)
+ ethernetController(terminalView, terminalInput, deviceInput, wifiService, wifiScannerService, ethernetService, sshService, netcatService, nmapService, icmpService, nvsService, httpService, telnetService, argTransformer, jsonTransformer, userInputManager)
{
}
diff --git a/src/Providers/DependencyProvider.h b/src/Providers/DependencyProvider.h
index df79f764..eed52b27 100644
--- a/src/Providers/DependencyProvider.h
+++ b/src/Providers/DependencyProvider.h
@@ -33,6 +33,7 @@ and injecting shared instances of core components
#include "Services/ThreeWireService.h"
#include "Services/EthernetService.h"
#include "Services/HttpService.h"
+#include "Services/TelnetService.h"
#include "Controllers/UartController.h"
#include "Controllers/I2cController.h"
#include "Controllers/OneWireController.h"
@@ -112,6 +113,7 @@ public:
SystemService &getSystemService();
EthernetService &getEthernetService();
HttpService &getHttpService();
+ TelnetService &getTelnetService();
// Controllers
UartController &getUartController();
@@ -201,6 +203,7 @@ private:
SystemService systemService;
EthernetService ethernetService;
HttpService httpService;
+ TelnetService telnetService;
// Controllers
UartController uartController;