Documentation ¶
Index ¶
- type TCPStreamInjector
- func (i *TCPStreamInjector) Init(netInterface string) error
- func (i *TCPStreamInjector) SetIPLayer(iplayer layers.IPv4) error
- func (i *TCPStreamInjector) SetTCPLayer(tcpLayer layers.TCP)
- func (i *TCPStreamInjector) SprayFutureAndFillGapPackets(start uint32, gap_payload, attack_payload []byte, overlap_future_packet bool) error
- func (i *TCPStreamInjector) SpraySequenceRangePackets(start uint32, count int) error
- func (i *TCPStreamInjector) Write() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPStreamInjector ¶
type TCPStreamInjector struct { Payload gopacket.Payload // contains filtered or unexported fields }
func (*TCPStreamInjector) Init ¶
func (i *TCPStreamInjector) Init(netInterface string) error
func (*TCPStreamInjector) SetIPLayer ¶
func (i *TCPStreamInjector) SetIPLayer(iplayer layers.IPv4) error
func (*TCPStreamInjector) SetTCPLayer ¶
func (i *TCPStreamInjector) SetTCPLayer(tcpLayer layers.TCP)
func (*TCPStreamInjector) SprayFutureAndFillGapPackets ¶
func (i *TCPStreamInjector) SprayFutureAndFillGapPackets(start uint32, gap_payload, attack_payload []byte, overlap_future_packet bool) error
SprayFutureAndFillGapPackets is used to perform an ordered coalesce injection attack; that is we first inject packets with future sequence numbers and then we fill the gap. The gap being the range from state machine's "next Sequence" to the earliest Sequence we transmitted in our future sequence series of packets.
func (*TCPStreamInjector) SpraySequenceRangePackets ¶
func (i *TCPStreamInjector) SpraySequenceRangePackets(start uint32, count int) error
func (*TCPStreamInjector) Write ¶
func (i *TCPStreamInjector) Write() error
Click to show internal directories.
Click to hide internal directories.