readers

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: BSD-2-Clause Imports: 12 Imported by: 0

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 CrtShReaderOptions struct {
	Timeout  time.Duration
	ProxyUri *url.URL
}

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
}

FileReaderOptions are options for the file reader

type Reader

type Reader interface {
	Read(chan<- string) error
}

Reader defines a reader. NOTE: The Reader needs to close the channel when done to stop the runner. You would typically do this with a "defer close(ch)" at the start of your Read() implementation.

Jump to

Keyboard shortcuts

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