Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrtShReader ¶ added in v0.1.14
type CrtShReader struct {
Options *CrtShReaderOptions
}
func NewCrtShReader ¶ added in v0.1.14
func NewCrtShReader(opts *CrtShReaderOptions) *CrtShReader
func (*CrtShReader) ReadFromCrtsh ¶ added in v0.1.14
func (crtr *CrtShReader) ReadFromCrtsh(domain string, outList *[]string, fqdnList *[]string) error
Read from a https://crt.sh.
type CrtShReaderOptions ¶ added in v0.1.14
type FileReader ¶
type FileReader struct {
Options *FileReaderOptions
}
FileReader is a reader that expects a file with targets that is newline delimited.
func NewFileReader ¶
func NewFileReader(opts *FileReaderOptions) *FileReader
NewFileReader prepares a new file reader
func (*FileReader) ReadDnsList ¶
func (fr *FileReader) ReadDnsList(outList *[]string) error
Read from a file.
func (*FileReader) ReadWordList ¶
func (fr *FileReader) ReadWordList(outList *[]string) error
type FileReaderOptions ¶
type FileReaderOptions struct {
DnsSuffixFile string
HostFile string
DnsServer string
IgnoreNonexistent bool
ProxyUri *url.URL
// AllowParentSOA resolves the real parent zone apex for a name that is not a
// zone apex itself (e.g. www.example.com -> example.com) instead of treating
// it as a non-existent suffix.
AllowParentSOA bool
// AddParentSOA resolves the parent zone apex and keeps BOTH the apex and the
// informed name in the output list (used by crtsh to crawl both).
AddParentSOA bool
// RefusePublicSuffix rejects entries that resolve to a public suffix (e.g.
// com.br, co.uk), preventing enumeration of registry-operated zones.
RefusePublicSuffix bool
// AllowTLD explicitly permits public suffixes / TLDs, overriding
// RefusePublicSuffix and the public-suffix guard in the parent SOA walk.
AllowTLD bool
}
FileReaderOptions are options for the file reader
Click to show internal directories.
Click to hide internal directories.