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.tcpIpSrc == puncher.srcIp and
|
||||||
parsed.tcpPortSrc.int == puncher.srcPort.int and
|
parsed.tcpPortSrc.int == puncher.srcPort.int and
|
||||||
parsed.tcpIpDst == puncher.dstIp and
|
parsed.tcpIpDst == puncher.dstIp and
|
||||||
parsed.tcpFlags.contains(SYN) and
|
parsed.tcpFlags == {SYN}:
|
||||||
not parsed.tcpFlags.contains(ACK):
|
|
||||||
for i, port in puncher.dstPorts.pairs:
|
for i, port in puncher.dstPorts.pairs:
|
||||||
if parsed.tcpPortDst.int == port.int:
|
if parsed.tcpPortDst.int == port.int:
|
||||||
seqNums.add(parsed.tcpSeqNumber)
|
seqNums.add(parsed.tcpSeqNumber)
|
||||||
|
|
Loading…
Reference in New Issue