remote

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const GoogleCSE = "googlecse"
View Source
const Googlesearch = "googlesearch"
View Source
const Local = "local"
View Source
const Numverify = "numverify"
View Source
const OVH = "ovh"

Variables

This section is empty.

Functions

func InitScanners

func InitScanners(remote *Library)

func OpenPlugin added in v2.6.0

func OpenPlugin(path string) error

func RegisterPlugin added in v2.6.0

func RegisterPlugin(s Scanner)

Types

type GoogleCSEScannerResponse added in v2.7.0

type GoogleCSEScannerResponse struct {
	Homepage          string       `json:"homepage,omitempty" console:"Homepage,omitempty"`
	ResultCount       int          `json:"result_count" console:"Results shown"`
	TotalResultCount  int          `json:"total_result_count" console:"Total number of results"`
	TotalRequestCount int          `json:"total_request_count" console:"Requests made"`
	Items             []ResultItem `json:"items,omitempty" console:"Items,omitempty"`
}

type GoogleSearchDork

type GoogleSearchDork struct {
	Number string `json:"number" console:"-"`
	Dork   string `json:"dork" console:"-"`
	URL    string `json:"url" console:"URL"`
}

GoogleSearchDork is the common format for dork requests

type GoogleSearchResponse

type GoogleSearchResponse struct {
	SocialMedia         []*GoogleSearchDork `json:"social_media" console:"Social media,omitempty"`
	DisposableProviders []*GoogleSearchDork `json:"disposable_providers" console:"Disposable providers,omitempty"`
	Reputation          []*GoogleSearchDork `json:"reputation" console:"Reputation,omitempty"`
	Individuals         []*GoogleSearchDork `json:"individuals" console:"Individuals,omitempty"`
	General             []*GoogleSearchDork `json:"general" console:"General,omitempty"`
}

GoogleSearchResponse is the output of Google search scanner. It contains all dorks created ordered by types.

type Library

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

func NewLibrary

func NewLibrary(filterEngine filter.Filter) *Library

func (*Library) AddScanner

func (r *Library) AddScanner(s Scanner)

func (*Library) GetAllScanners added in v2.8.0

func (r *Library) GetAllScanners() []Scanner

func (*Library) GetScanner added in v2.9.0

func (r *Library) GetScanner(name string) Scanner

func (*Library) LoadPlugins added in v2.6.0

func (r *Library) LoadPlugins()

func (*Library) Scan

func (r *Library) Scan(n *number.Number, opts ScannerOptions) (map[string]interface{}, map[string]error)

type LocalScannerResponse

type LocalScannerResponse struct {
	RawLocal      string `json:"raw_local,omitempty" console:"Raw local,omitempty"`
	Local         string `json:"local,omitempty" console:"Local,omitempty"`
	E164          string `json:"e164,omitempty" console:"E164,omitempty"`
	International string `json:"international,omitempty" console:"International,omitempty"`
	CountryCode   int32  `json:"country_code,omitempty" console:"Country code,omitempty"`
	Country       string `json:"country,omitempty" console:"Country,omitempty"`
	Carrier       string `json:"carrier,omitempty" console:"Carrier,omitempty"`
}

type NumverifyScannerResponse

type NumverifyScannerResponse struct {
	Valid               bool   `json:"valid" console:"Valid"`
	Number              string `json:"number" console:"Number,omitempty"`
	LocalFormat         string `json:"local_format" console:"Local format,omitempty"`
	InternationalFormat string `json:"international_format" console:"International format,omitempty"`
	CountryPrefix       string `json:"country_prefix" console:"Country prefix,omitempty"`
	CountryCode         string `json:"country_code" console:"Country code,omitempty"`
	CountryName         string `json:"country_name" console:"Country name,omitempty"`
	Location            string `json:"location" console:"Location,omitempty"`
	Carrier             string `json:"carrier" console:"Carrier,omitempty"`
	LineType            string `json:"line_type" console:"Line type,omitempty"`
}

type OVHScannerResponse

type OVHScannerResponse struct {
	Found       bool   `json:"found" console:"Found"`
	NumberRange string `json:"number_range,omitempty" console:"Number range,omitempty"`
	City        string `json:"city,omitempty" console:"City,omitempty"`
	ZipCode     string `json:"zip_code,omitempty" console:"Zip code,omitempty"`
}

OVHScannerResponse is the OVH scanner response

type Plugin added in v2.6.0

type Plugin interface {
	Lookup(string) (plugin.Symbol, error)
}

type ResultItem added in v2.7.0

type ResultItem struct {
	Title string `json:"title,omitempty" console:"Title,omitempty"`
	URL   string `json:"url,omitempty" console:"URL,omitempty"`
}

type Scanner

type Scanner interface {
	Name() string
	Description() string
	DryRun(number.Number, ScannerOptions) error
	Run(number.Number, ScannerOptions) (interface{}, error)
}

func NewGoogleCSEScanner added in v2.7.0

func NewGoogleCSEScanner(HTTPclient *http.Client) Scanner

func NewGoogleSearchScanner

func NewGoogleSearchScanner() Scanner

func NewLocalScanner

func NewLocalScanner() Scanner

type ScannerOptions added in v2.11.0

type ScannerOptions map[string]interface{}

func (ScannerOptions) GetStringEnv added in v2.11.0

func (o ScannerOptions) GetStringEnv(k string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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