first TCP packet always has only SYN flag
This commit is contained in:
parent
9e969cb41a
commit
95f074e202
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue