Browse Source

Add missing code to start covert channel for tcpappend

Missingmew 4 years ago
parent
commit
d8d0975506
1 changed files with 7 additions and 0 deletions
  1. 7 0
      daemon/src/main.cpp

+ 7 - 0
daemon/src/main.cpp

@@ -57,6 +57,13 @@ int main(int argc, char *argv[]) {
 		} else {
 			covertchannel = new TCPAppendChannel<8, false>(innerInterface, outerInterface, ownIP, targetIP, targetPort);
 		}
+
+		// test sending file
+		if (passiveMode != "true" && sendFile != "")
+			covertchannel->sendFile(sendFile);
+
+		// covertchannel = new ForwardChannel(innerInterface, outerInterface);
+		covertchannel->startSniffing();
 	} else if (covertChannelMode == "tcpoptiontimestamp") {
 		const string innerInterface = Config::getValue("innerInterface");
 		const string outerInterface = Config::getValue("outerInterface");