attack

package
v0.0.0-...-53421ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2019 License: GPL-3.0 Imports: 6 Imported by: 16

Documentation

Index

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 NewTCPStreamInjector

func NewTCPStreamInjector(pcapHandle *pcap.Handle, isIPv6Mode bool) *TCPStreamInjector

func (*TCPStreamInjector) SetEthernetLayer

func (i *TCPStreamInjector) SetEthernetLayer(eth *layers.Ethernet)

func (*TCPStreamInjector) SetIPv4Layer

func (i *TCPStreamInjector) SetIPv4Layer(iplayer layers.IPv4)

func (*TCPStreamInjector) SetIPv6Layer

func (i *TCPStreamInjector) SetIPv6Layer(iplayer layers.IPv6)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL