Documentation
¶
Index ¶
- Variables
- func IsWildCard(domain string) (bool, []string)
- func TestSpeed(ether *device.EtherTable)
- type MemoryPool
- func (p *MemoryPool) GetBuffer() gopacket.SerializeBuffer
- func (p *MemoryPool) GetDNS() *layers.DNS
- func (p *MemoryPool) GetDNSAnswers() []layers.DNSResourceRecord
- func (p *MemoryPool) GetDNSQuestions() []layers.DNSQuestion
- func (p *MemoryPool) PutBuffer(buf gopacket.SerializeBuffer)
- func (p *MemoryPool) PutDNS(dns *layers.DNS)
- func (p *MemoryPool) PutDNSAnswers(answers []layers.DNSResourceRecord)
- func (p *MemoryPool) PutDNSQuestions(questions []layers.DNSQuestion)
- type Runner
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMemPool = NewMemoryPool()
全局内存池实例
Functions ¶
func IsWildCard ¶
func TestSpeed ¶
func TestSpeed(ether *device.EtherTable)
Types ¶
type MemoryPool ¶
type MemoryPool struct {
// contains filtered or unexported fields
}
MemoryPool 实现内存对象池 用于复用频繁分配的对象,减少GC压力
func (*MemoryPool) GetBuffer ¶
func (p *MemoryPool) GetBuffer() gopacket.SerializeBuffer
GetBuffer 获取一个序列化缓冲区
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) 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 (*Runner) RunEnumeration ¶
RunEnumeration 开始子域名枚举过程
Source Files
¶
Click to show internal directories.
Click to hide internal directories.