udp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ScanType = "udp"

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketFiller

type PacketFiller struct {
	// contains filtered or unexported fields
}

func NewPacketFiller

func NewPacketFiller(opts ...PacketFillerOption) *PacketFiller

func (*PacketFiller) Fill

func (f *PacketFiller) Fill(packet gopacket.SerializeBuffer, r *scan.Request) (err error)

type PacketFillerOption

type PacketFillerOption func(f *PacketFiller)

func WithIPFlags

func WithIPFlags(flags uint8) PacketFillerOption

func WithIPProtocol

func WithIPProtocol(proto uint8) PacketFillerOption

func WithIPTotalLength

func WithIPTotalLength(length uint16) PacketFillerOption

func WithPayload

func WithPayload(payload []byte) PacketFillerOption

func WithTTL

func WithTTL(ttl uint8) PacketFillerOption

func WithVPNmode

func WithVPNmode(vpnMode bool) PacketFillerOption

type ScanMethod

type ScanMethod struct {
	scan.PacketSource
	packet.Processor
	scan.Resulter
}

ScanMethod exploits RFC1122 Section 4.1.3.1: If a datagram arrives addressed to a UDP port for which there is no pending LISTEN call, UDP SHOULD send an ICMP Port Unreachable message.

func NewScanMethod

func NewScanMethod(psrc scan.PacketSource, results scan.ResultChan, vpnMode bool) *ScanMethod

Jump to

Keyboard shortcuts

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