first TCP packet always has only SYN flag

This commit is contained in:
Christian Ulrich 2020-07-17 10:37:33 +02:00
parent 9e969cb41a
commit 95f074e202
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ proc captureSeqNumbers(puncher: TcpSyniPuncher, rawFd: AsyncFD,
parsed.tcpIpSrc == puncher.srcIp and
parsed.tcpPortSrc.int == puncher.srcPort.int and
parsed.tcpIpDst == puncher.dstIp and
parsed.tcpFlags.contains(SYN) and
not parsed.tcpFlags.contains(ACK):
parsed.tcpFlags == {SYN}:
for i, port in puncher.dstPorts.pairs:
if parsed.tcpPortDst.int == port.int:
seqNums.add(parsed.tcpSeqNumber)