Documentation ¶
Index ¶
- Constants
- type PacketFiller
- type PacketFillerOption
- func WithIPFlags(flags uint8) PacketFillerOption
- func WithIPProtocol(proto uint8) PacketFillerOption
- func WithIPTotalLength(length uint16) PacketFillerOption
- func WithPayload(payload []byte) PacketFillerOption
- func WithTTL(ttl uint8) PacketFillerOption
- func WithVPNmode(vpnMode bool) PacketFillerOption
- type ScanMethod
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 ¶
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
Click to show internal directories.
Click to hide internal directories.