Kaynağa Gözat

Clarifying filters

Jonas Pflanzer 4 yıl önce
ebeveyn
işleme
78c555afce
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      daemon/src/CovertChannel/ProxyChannel.cpp

+ 2 - 2
daemon/src/CovertChannel/ProxyChannel.cpp

@@ -5,8 +5,8 @@ ProxyChannel::ProxyChannel(const std::string &innerInterface, const std::string
                            const std::string &originIP, const std::string &targetIP, const std::string &targetPort, const std::string &ownMAC,
                            const std::string &originMAC, const std::string &channelGatewayMAC, const std::string &gatewayMAC, const bool relayOnly)
     : CovertChannel(innerInterface, outerInterface,
-                    "not (tcp and src host " + originIP + " and dst host " + targetIP + " and dst port " + targetPort + ") and not(dst host " + ownIP + ")",
-                    "not (tcp and src host " + targetIP + " and dst host " + ownIP + " and src port " + targetPort + ") and not(dst host " + ownIP + ")",
+                    "(not (tcp and src host " + originIP + " and dst host " + targetIP + " and dst port " + targetPort + ")) and (not (dst host " + ownIP + "))",
+                    "(not (tcp and src host " + targetIP + " and dst host " + ownIP + " and src port " + targetPort + ")) and (not (dst host " + ownIP + "))",
                     "tcp and src host " + originIP + " and dst host " + targetIP + " and dst port " + targetPort,
                     "tcp and src host " + targetIP + " and dst host " + ownIP + " and src port " + targetPort,
                     "tcp and src host " + partnerIP + " and dst host " + ownIP + " and dst port " + targetPort),