@@ -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");