injected packet needs SYN

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

View File

@ -89,7 +89,8 @@ proc injectSyns(rawFd: AsyncFD, srcIp: IpAddress, srcPort: Port,
tcpIpDst: dstIp, tcpIpDst: dstIp,
tcpPortSrc: dstPort, tcpPortSrc: dstPort,
tcpPortDst: srcPort, tcpPortDst: srcPort,
tcpSeqNumber: seqNum) tcpSeqNumber: seqNum,
tcpFlags: {SYN})
asyncCheck rawFd.send(serialize(ipPacket)) asyncCheck rawFd.send(serialize(ipPacket))
proc initPuncher*(srcPort: Port, dstIp: IpAddress, dstPorts: array[3, Port], proc initPuncher*(srcPort: Port, dstIp: IpAddress, dstPorts: array[3, Port],