providers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version of gau
	Version = `1.2.0`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonAPIResult

type CommonAPIResult []struct {
	API string `json:"cdx-api"`
}

type CommonPaginationResult

type CommonPaginationResult struct {
	Blocks   uint `json:"blocks"`
	PageSize uint `json:"pageSize"`
	Pages    uint `json:"pages"`
}

type CommonProvider

type CommonProvider struct {
	*Config
	// contains filtered or unexported fields
}

func (*CommonProvider) Fetch

func (c *CommonProvider) Fetch(domain string, results chan<- string) error

type CommonResult

type CommonResult struct {
	URL   string `json:"url"`
	Error string `json:"error"`
}

type Config

type Config struct {
	Threads           uint
	Verbose           bool
	MaxRetries        uint
	IncludeSubdomains bool
	Client            *http.Client
	Providers         []string
	Blacklist         map[string]struct{}
	Output            string
	JSON              bool
}

func (*Config) MakeRequest

func (c *Config) MakeRequest(url string) (resp *http.Response, err error)

MakeRequest tries to make a GET request for the given URL and retries on failure.

type OTXProvider

type OTXProvider struct {
	*Config
}

func (*OTXProvider) Fetch

func (o *OTXProvider) Fetch(domain string, results chan<- string) error

type OTXResult

type OTXResult struct {
	HasNext    bool `json:"has_next"`
	ActualSize int  `json:"actual_size"`
	URLList    []struct {
		Domain   string `json:"domain"`
		URL      string `json:"url"`
		Hostname string `json:"hostname"`
		HTTPCode int    `json:"httpcode"`
		PageNum  int    `json:"page_num"`
		FullSize int    `json:"full_size"`
		Paged    bool   `json:"paged"`
	} `json:"url_list"`
}

type Provider

type Provider interface {
	Fetch(string, chan<- string) error
}

A generic interface for providers

func NewCommonProvider

func NewCommonProvider(config *Config) (Provider, error)

func NewOTXProvider

func NewOTXProvider(config *Config) Provider

func NewWaybackProvider

func NewWaybackProvider(config *Config) Provider

type WaybackPaginationResult

type WaybackPaginationResult uint

type WaybackProvider

type WaybackProvider struct {
	*Config
}

func (*WaybackProvider) Fetch

func (w *WaybackProvider) Fetch(domain string, results chan<- string) error

type WaybackResult

type WaybackResult [][]string

Jump to

Keyboard shortcuts

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