domainscan

package
v0.0.0-...-0b9a7cd Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 6

Documentation

Index

Constants

View Source
const (
	SameIpToDomainFilterMax = 100
)

Variables

This section is empty.

Functions

func FilterDomainResult

func FilterDomainResult(result *Result)

FilterDomainResult 对域名结果进行过滤

func ResolveDomain

func ResolveDomain(domain string) (CName string, Host []string)

ResolveDomain 解析一个域名的A记录和CNAME记录

Types

type Config

type Config struct {
	Target             string `json:"target"`
	OrgId              *int   `json:"orgId"`
	IsSubDomainFinder  bool   `json:"subfinder"`
	IsSubDomainBrute   bool   `json:"subdomainBrute"`
	IsCrawler          bool   `json:"crawler"`
	IsHttpx            bool   `json:"httpx"`
	IsIPPortScan       bool   `json:"portscan"`
	IsIPSubnetPortScan bool   `json:"subnetPortscan"`
	IsScreenshot       bool   `json:"screenshot"`
	IsFingerprintHub   bool   `json:"fingerprinthub"`
	IsIconHash         bool   `json:"iconhash"`
	IsFingerprintx     bool   `json:"fingerprintx"`
	PortTaskMode       int    `json:"portTaskMode"`
	IsIgnoreCDN        bool   `json:"ignorecdn"`
	IsIgnoreOutofChina bool   `json:"ignoreoutofchina"`
	WorkspaceId        int    `json:"workspaceId"`
	IsProxy            bool   `json:"proxy"`
}

Config 端口扫描的参数配置

type Crawler

type Crawler struct {
	Config Config
	Result Result
}

func NewCrawler

func NewCrawler(config Config) *Crawler

NewCrawler 创建Crawler对象

func (*Crawler) Do

func (c *Crawler) Do()

Do 执行爬虫获取子域名

func (*Crawler) RunCrawler

func (c *Crawler) RunCrawler(domainUrl string)

RunCrawler 爬取一个网站

type DomainAttrResult

type DomainAttrResult struct {
	RelatedId int
	Source    string
	Tag       string
	Content   string
}

DomainAttrResult 域名属性结果

type DomainResult

type DomainResult struct {
	OrgId       *int
	DomainAttrs []DomainAttrResult
	HttpInfo    []HttpResult
}

DomainResult 域名结果

type HttpResult

type HttpResult struct {
	RelatedId int
	Port      int
	Source    string
	Tag       string
	Content   string
}

type Massdns

type Massdns struct {
	Config Config
	Result Result
}

func NewMassdns

func NewMassdns(config Config) *Massdns

NewMassdns 创建Massdns对象

func (*Massdns) Do

func (m *Massdns) Do()

Do 执行Massdns任务

func (*Massdns) RunMassdns

func (m *Massdns) RunMassdns(domain string)

RunMassdns runs the massdns tool on the list of inputs

type Resolve

type Resolve struct {
	Config Config
	Result Result
}

func NewResolve

func NewResolve(config Config) *Resolve

NewResolve 创建resolve对象

func (*Resolve) Do

func (r *Resolve) Do()

Do 执行域名解析

func (*Resolve) RunResolve

func (r *Resolve) RunResolve(domain string)

RunResolve 解析并保存一个域名结果

type Result

type Result struct {
	sync.RWMutex
	DomainResult    map[string]*DomainResult
	ReqResponseList []UrlResponse
}

Result 域名结果

func (*Result) HasDomain

func (r *Result) HasDomain(domain string) bool

func (*Result) SaveResult

func (r *Result) SaveResult(config Config) string

SaveResult 保存域名结果

func (*Result) SetDomain

func (r *Result) SetDomain(domain string)

func (*Result) SetDomainAttr

func (r *Result) SetDomainAttr(domain string, dar DomainAttrResult)

func (*Result) SetHttpInfo

func (r *Result) SetHttpInfo(domain string, result HttpResult)

type SubFinder

type SubFinder struct {
	Config Config
	Result Result
}

func NewSubFinder

func NewSubFinder(config Config) *SubFinder

NewSubFinder 创建subfinder

func (*SubFinder) Do

func (s *SubFinder) Do()

Do 执行子域名枚举

func (*SubFinder) RunSubFinder

func (s *SubFinder) RunSubFinder(domain string)

RunSubFinder 执行subfinder

type TldExtract

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

func NewTldExtract

func NewTldExtract() TldExtract

NewTldExtract 创建TldExtract对象

func (*TldExtract) ExtractFLD

func (t *TldExtract) ExtractFLD(url string) (fldDomain string)

ExtractFLD 从url或domain中提取FLD

type UrlResponse

type UrlResponse struct {
	URL              string
	Method           string
	Headers          map[string]interface{}
	PostData         string
	StatusCode       int
	ContentLength    int64
	RedirectLocation string
}

Jump to

Keyboard shortcuts

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