runner

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalMemPool = NewMemoryPool()

全局内存池实例

Functions

func IsWildCard

func IsWildCard(domain string) (bool, []string)

func TestSpeed

func TestSpeed(ether *device.EtherTable)

Types

type MemoryPool

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

MemoryPool 实现内存对象池 用于复用频繁分配的对象,减少GC压力

func NewMemoryPool

func NewMemoryPool() *MemoryPool

NewMemoryPool 创建一个新的内存池

func (*MemoryPool) GetBuffer

func (p *MemoryPool) GetBuffer() gopacket.SerializeBuffer

GetBuffer 获取一个序列化缓冲区

func (*MemoryPool) GetDNS

func (p *MemoryPool) GetDNS() *layers.DNS

GetDNS 获取一个DNS对象

func (*MemoryPool) GetDNSAnswers

func (p *MemoryPool) GetDNSAnswers() []layers.DNSResourceRecord

GetDNSAnswers 获取DNS应答切片

func (*MemoryPool) GetDNSQuestions

func (p *MemoryPool) GetDNSQuestions() []layers.DNSQuestion

GetDNSQuestions 获取DNS问题切片

func (*MemoryPool) PutBuffer

func (p *MemoryPool) PutBuffer(buf gopacket.SerializeBuffer)

PutBuffer 回收一个序列化缓冲区

func (*MemoryPool) PutDNS

func (p *MemoryPool) PutDNS(dns *layers.DNS)

PutDNS 回收一个DNS对象

func (*MemoryPool) PutDNSAnswers

func (p *MemoryPool) PutDNSAnswers(answers []layers.DNSResourceRecord)

PutDNSAnswers 回收DNS应答切片

func (*MemoryPool) PutDNSQuestions

func (p *MemoryPool) PutDNSQuestions(questions []layers.DNSQuestion)

PutDNSQuestions 回收DNS问题切片

type Runner

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

Runner 表示子域名扫描的运行时结构

func New

func New(opt *options.Options) (*Runner, error)

New 创建一个新的Runner实例

func (*Runner) Close

func (r *Runner) Close()

Close 关闭Runner并释放资源

func (*Runner) RunEnumeration

func (r *Runner) RunEnumeration(ctx context.Context)

RunEnumeration 开始子域名枚举过程

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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