injected packet needs SYN
This commit is contained in:
parent
bde56c80b0
commit
9e969cb41a
|
@ -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],
|
||||||
|
|
Loading…
Reference in New Issue