Added UDP support

This commit is contained in:
George Hughey 2020-02-17 21:31:58 -08:00
parent 337f916920
commit 658b5e51b2
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,8 @@ class WindowsEngine(GenericEngine):
self.logger.debug("Initializing Divert") self.logger.debug("Initializing Divert")
self.divert = pydivert.WinDivert("tcp.DstPort == %d || tcp.SrcPort == %d" % (int(self.server_port), int(self.server_port))) self.divert = pydivert.WinDivert("tcp.DstPort == %d || tcp.SrcPort == %d || udp.DstPort == %d || udp.SrcPort == %d" \
self.divert.open() % (int(self.server_port), int(self.server_port), int(self.server_port), int(self.server_port)))self.divert.open()
self.divert_thread = threading.Thread(target=self.run_divert) self.divert_thread = threading.Thread(target=self.run_divert)
self.divert_thread.start() self.divert_thread.start()