Versions in this module Expand all Collapse all v0 v0.4.1 Mar 14, 2022 Changes in this version + const FINScanType + const FlagsScanType + const MaxPacketLength + const NULLScanType + const SYNScanType + const XmasScanType + func AllFlags(pkt *layers.TCP) string + func BPFFilter(r *scan.Range) (filter string, maxPacketLength int) + func EmptyFlags(*layers.TCP) string + func SYNACKBPFFilter(r *scan.Range) (filter string, maxPacketLength int) + func TrueFilter(*layers.TCP) bool + type PacketFiller struct + ACK bool + CWR bool + ECE bool + FIN bool + NS bool + PSH bool + RST bool + SYN bool + URG bool + func NewPacketFiller(opts ...PacketFillerOption) *PacketFiller + func (f *PacketFiller) Fill(packet gopacket.SerializeBuffer, r *scan.Request) (err error) + type PacketFillerOption func(f *PacketFiller) + func WithACK() PacketFillerOption + func WithCWR() PacketFillerOption + func WithECE() PacketFillerOption + func WithFIN() PacketFillerOption + func WithFillerVPNmode(vpnMode bool) PacketFillerOption + func WithNS() PacketFillerOption + func WithPSH() PacketFillerOption + func WithRST() PacketFillerOption + func WithSYN() PacketFillerOption + func WithURG() PacketFillerOption + type PacketFilterFunc func(pkt *layers.TCP) bool + type PacketFlagsFunc func(pkt *layers.TCP) string + type ScanMethod struct + func NewScanMethod(scanType string, psrc scan.PacketSource, results scan.ResultChan, ...) *ScanMethod + func (s *ScanMethod) ProcessPacketData(data []byte, _ *gopacket.CaptureInfo) (err error) + func (s *ScanMethod) Results() <-chan scan.Result + type ScanMethodOption func(s *ScanMethod) + func WithPacketFilterFunc(pktFilter PacketFilterFunc) ScanMethodOption + func WithPacketFlagsFunc(pktFlags PacketFlagsFunc) ScanMethodOption + func WithScanVPNmode(vpnMode bool) ScanMethodOption + type ScanResult struct + Flags string + IP string + Port uint16 + ScanType string + func (r *ScanResult) ID() string + func (r *ScanResult) String() string + func (v *ScanResult) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ScanResult) UnmarshalJSON(data []byte) error + func (v ScanResult) MarshalEasyJSON(w *jwriter.Writer) + func (v ScanResult) MarshalJSON() ([]byte, error)