Skip to content

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

Fixed newline on the other side

Andrei Vladescu0b71332ea388
diff --git a/src/Services/NetcatService.cpp b/src/Services/NetcatService.cpp
index 15dc01ab..1a1592d4 100644
--- a/src/Services/NetcatService.cpp
+++ b/src/Services/NetcatService.cpp
@@ -82,6 +82,8 @@ void NetcatService::writeChar(char c)
txBuf.push_back(c);
if (c == '\n' || c == '\r')
{
+ if (c == '\r')
+ txBuf.push_back('\n');
::send(sock, txBuf.data(), txBuf.size(), 0);
txBuf.clear();
}