sources

package
Version: v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var All = []string{
	"alienvault",
	"anubis",
	"archiveis",
	"bufferover",
	"cebaidu",
	"certspotterv0",
	"chaos",
	"commoncrawl",
	"crtsh",
	"github",
	"hackertarget",
	"intelx",
	"rapiddns",
	"riddler",
	"sonar",
	"sublist3r",
	"threatcrowd",
	"threatminer",
	"urlscan",
	"wayback",
	"ximcx",
}

All contains the list of all sources used by default.

Functions

func NewExtractor

func NewExtractor(domain string) (*regexp.Regexp, error)

Types

type Keys

type Keys struct {
	Chaos      string   `json:"chaos"`
	GitHub     []string `json:"github"`
	Intelx     string   `json:"intelx"` // unused, add just for the purpose of adding * on listing sources
	IntelXHost string   `json:"intelXHost"`
	IntelXKey  string   `json:"intelXKey"`
}

type Session

type Session struct {
	Extractor *regexp.Regexp
	Keys      *Keys
	Client    *fasthttp.Client
}

func NewSession

func NewSession(domain string, keys *Keys) (*Session, error)

func (*Session) Get added in v1.2.0

func (session *Session) Get(URL, cookies string, headers map[string]string) (*fasthttp.Response, error)

Get makes a GET request to a URL with extended parameters

func (*Session) Post added in v1.2.0

func (session *Session) Post(URL, cookies string, headers map[string]string, body []byte) (*fasthttp.Response, error)

Post makes a POST request to a URL with extended parameters

func (*Session) Request

func (session *Session) Request(method, URL, cookies string, headers map[string]string, body []byte) (*fasthttp.Response, error)

Request makes any HTTP request to a URL with extended parameters

func (*Session) SimpleGet

func (session *Session) SimpleGet(URL string) (*fasthttp.Response, error)

SimpleGet makes a simple GET request to a URL

func (*Session) SimplePost added in v1.2.0

func (session *Session) SimplePost(URL, contentType string, body []byte) (*fasthttp.Response, error)

SimplePost makes a simple POST request to a URL

type Source

type Source interface {
	Run(string, *Session) chan Subdomain
	Name() string
}

type Subdomain

type Subdomain struct {
	Source string
	Value  string
}

Jump to

Keyboard shortcuts

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