enumsubdomain

package
v0.0.0-...-c0aa7e1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const LETTERS = "abcdefghijklmnopqrstuvwxyz0123456789"

Variables

This section is empty.

Functions

func BuildAlphaTable

func BuildAlphaTable() []string

func RandString

func RandString(n int) string

Types

type App

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

func NewApp

func NewApp(args *AppArgs) *App

func (*App) Run

func (app *App) Run() ([]*SubdomainResult, error)

Run 真正的程序入口,不管是 CLI 进来的,还是 API 进来的,都会调用这个函数开始执行

type AppArgs

type AppArgs struct {
	Target string

	Technicals []string

	DictFile    string
	BruteLength string
	FofaToken   string

	OutputFile    string
	TaskCount     uint
	CheckWildcard bool
	Nameserver    []string
	FetchTitle    bool

	FromCLI     bool // true 表示是从命令行进入的,默认为 false 表示从 SDK 引入
	Debug       bool
	HasWildcard bool
}

func ParseCLIArgs

func ParseCLIArgs() (*AppArgs, error)

func (*AppArgs) PrettyString

func (a *AppArgs) PrettyString() string

type BruteEngine

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

func NewBruteEngine

func NewBruteEngine(appArgs *AppArgs, mainWG *sync.WaitGroup, bruteTaskChan, fofaResultChan chan string, resultChan chan *SubdomainResult) *BruteEngine

func (*BruteEngine) Run

func (e *BruteEngine) Run()

type DNSClient

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

func NewDNSClient

func NewDNSClient(ns []string) *DNSClient

func (*DNSClient) CheckDomainWildcard

func (d *DNSClient) CheckDomainWildcard(domain string) bool

func (*DNSClient) CheckNSConnection

func (d *DNSClient) CheckNSConnection(ns string, msg *dns.Msg) bool

CheckNSConnection 检查指定的 NS 是否可以连通

func (*DNSClient) DoDNSResolve

func (d *DNSClient) DoDNSResolve(domain string) (*DNSResolveResult, error)

DoDNSResolve 执行 DNS 解析 返回值:(ARecord, CNAMERecord, Error)

func (*DNSClient) RemoveUnconnectedNS

func (d *DNSClient) RemoveUnconnectedNS() ([]string, []string)

RemoveUnconnectedNS 检查自身的 ns 列表,移除无法连接的 ns,返回被移除的ns列表

type DNSResolveResult

type DNSResolveResult struct {
	ARecord     []string
	CNAMERecord []string
	// contains filtered or unexported fields
}

type EngineWrapper

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

func NewEngineWrapper

func NewEngineWrapper(appArgs *AppArgs, mainWG *sync.WaitGroup, bruteTaskChan, fofaTaskChan chan string, resultChan chan *SubdomainResult) *EngineWrapper

func (*EngineWrapper) Run

func (wrapper *EngineWrapper) Run()

type FofaEngine

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

func NewFofaEngine

func NewFofaEngine(appArgs *AppArgs, mainWG *sync.WaitGroup, fofaTaskChan, fofaResultChan chan string) *FofaEngine

func (*FofaEngine) Run

func (engine *FofaEngine) Run()

type HTTPResult

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

func FetchIndexTitle

func FetchIndexTitle(domain string) *HTTPResult

FetchIndexTitle 获取网页标题,状态码,Body 长度等信息

type ResultEngine

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

func NewResultEngine

func NewResultEngine(appArgs *AppArgs, mainWG *sync.WaitGroup, resultChan chan *SubdomainResult) *ResultEngine

func (*ResultEngine) Run

func (engine *ResultEngine) Run()

type SubdomainResult

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

func (SubdomainResult) String

func (r SubdomainResult) String() string

type TaskBuilderEngine

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

func NewTaskBuilderEngine

func NewTaskBuilderEngine(appArgs *AppArgs, mainWG *sync.WaitGroup, bruteTaskChan, fofaTaskChan chan string) *TaskBuilderEngine

func (*TaskBuilderEngine) Run

func (e *TaskBuilderEngine) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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