github

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct{}

Source is the passive sources agent

func (*Source) Enumerate

func (source *Source) Enumerate(searchURL string, domainRegexp *regexp.Regexp, tokens *Tokens, session *sources.Session, subdomains chan sources.Subdomain)

Enumerate is a

func (*Source) Name

func (source *Source) Name() string

Name returns the name of the source

func (*Source) Run

func (source *Source) Run(domain string, session *sources.Session) chan sources.Subdomain

Run function returns all subdomains found with the service

type Token

type Token struct {
	Hash         string
	RetryAfter   int64
	ExceededTime time.Time
}

Token struct

type Tokens

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

Tokens is the internal struct to manage the current token and the pool

func NewTokenManager

func NewTokenManager(keys []string) *Tokens

NewTokenManager initialize the tokens pool

func (*Tokens) Get

func (r *Tokens) Get() *Token

Get returns a new token from the token pool

Jump to

Keyboard shortcuts

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