Documentation ¶
Index ¶
- Variables
- type BasicConfig
- type Config
- func (c *Config) GetConcurrency(concurrency int)
- func (c *Config) GetDomains(args []string)
- func (c *Config) GetFile(file string)
- func (c *Config) GetFilters(filters []string)
- func (c *Config) GetFormat(format string)
- func (c *Config) GetFuncs(funcs []string)
- func (c *Config) GetHeaders(funcs []Module)
- func (c *Config) GetKeyboards(keyboards []string)
- func (c *Config) GetTiming(delay, random time.Duration)
- func (c *Config) GetTypos(typos []string)
- func (c *Config) GetVerbose(verbose bool)
- type DNS
- type Domain
- type ElasticStorage
- type Meta
- type Metadater
- type Metric
- type Module
- type ModuleFunc
- type Moduler
- type OutputResult
- type Register
- type Registry
- type Result
- type Statser
- type Storager
- type Timing
- type Typosquatting
- func (typ *Typosquatting) Batch() (res []Result)
- func (typ *Typosquatting) Dedup(in <-chan Result) <-chan Result
- func (typ *Typosquatting) DistChain(in <-chan Result) <-chan Result
- func (typ *Typosquatting) Execute()
- func (typ *Typosquatting) FilterChain(in <-chan Result) <-chan Result
- func (typ *Typosquatting) FuncChain(funcs []Module, in <-chan Result) <-chan Result
- func (typ *Typosquatting) GenTypoConfig() <-chan Result
- func (typ *Typosquatting) Output(in <-chan Result)
- func (typ *Typosquatting) Results(in <-chan Result) <-chan Result
- func (typ *Typosquatting) Start() <-chan Result
- func (typ *Typosquatting) Stream() <-chan Result
- func (typ *Typosquatting) Typos(in <-chan Result) <-chan Result
Constants ¶
This section is empty.
Variables ¶
var Extras = NewRegistry()
Extras is the registry for extra functions
var Filters = NewRegistry()
Filters ...
var Typos = NewRegistry()
Typos ...
Functions ¶
This section is empty.
Types ¶
type BasicConfig ¶
type BasicConfig struct { Domains []string `json:"domains,omitempty"` Keyboards []string `json:"keyboards,omitempty"` Filters []string `json:"filters,omitempty"` Typos []string `json:"typos,omitempty"` Funcs []string `json:"funcs,omitempty"` Storage []string `json:"storage,omitempty"` Concurrency int `json:"concurrency,omitempty"` Format string `json:"format,omitempty"` File string `json:"file,omitempty"` Verbose bool `json:"verbose,omitempty"` Timing Timing `json:"timing,omitempty"` }
BasicConfig ...
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config ...
func CobraConfig ¶
CobraConfig creates a configuration from a cobra command and arguments
func (*Config) GetKeyboards ¶
GetKeyboards retrieves a list of keyboards
type DNS ¶
type DNS struct { IPv4 []string `json:"ipv4,omitempty"` IPv6 []string `json:"ip46,omitempty"` NS []dnsLib.NS `json:"ns,omitempty"` MX []dnsLib.MX `json:"mx,omitempty"` CName []string `json:"cname,omitempty"` TXT []string `json:"txt,omitempty"` // contains filtered or unexported fields }
DNS ...
type Domain ¶
type Domain struct { Subdomain string `json:"subdomain,omitempty"` Domain string `json:"domain,omitempty"` Suffix string `json:"suffix,omitempty"` Meta Meta `json:"meta,omitempty"` Live bool `json:"live,omitempty"` }
Domain ...
type ElasticStorage ¶
type ElasticStorage struct {
// contains filtered or unexported fields
}
ElasticStorage ...
type Meta ¶
type Meta struct { Levenshtein int `json:"Levenshtein,omitempty"` IDNA string `json:"idna,omitempty"` IP []string `json:"ip,omitempty"` Redirect string `json:"redirect,omitempty"` HTTP httpLib.Response `json:"http,omitempty"` Geo geoLib.Country `json:"geo,omitempty"` DNS DNS `json:"dns,omitempty"` SSDeep string `json:"ssdeep,omitempty"` Similarity int `json:"similarity,omitempty"` }
Meta ...
type Metric ¶
type Metric struct { Time int `json:"time,omitempty"` Name string `json:"name,omitempty"` Variant Domain `json:"variant,omitempty"` TypoMetrics []Metric `json:"typometrics,omitempty"` InfoMetrics []Metric `json:"infometrics,omitempty"` Result Result `json:"result,omitempty"` }
Metric ...
type Module ¶
type Module struct { Code string `json:"code,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Fields []string `json:"-"` Exe ModuleFunc `json:"-"` }
Module ...
type ModuleFunc ¶
ModuleFunc defines a function to register typos.
type Result ¶
type Result struct { Keyboards []languages.Keyboard `json:"-"` Languages []languages.Language `json:"-"` Original Domain `json:"original,omitempty"` Variant Domain `json:"variant,omitempty"` Typo Module `json:"typo,omitempty"` Data map[string]string `json:"data,omitempty"` }
Result ...
type Timing ¶
type Timing struct { Delay time.Duration `json:"delay,omitempty"` Random time.Duration `json:"random,omitempty"` }
Timing ...
type Typosquatting ¶
type Typosquatting struct {
// contains filtered or unexported fields
}
Typosquatting ...
func (*Typosquatting) Batch ¶
func (typ *Typosquatting) Batch() (res []Result)
Batch returns all the results at once
func (*Typosquatting) Dedup ¶
func (typ *Typosquatting) Dedup(in <-chan Result) <-chan Result
Dedup filters the results for unique variations of domains
func (*Typosquatting) DistChain ¶
func (typ *Typosquatting) DistChain(in <-chan Result) <-chan Result
DistChain creates workers of chained functions
func (*Typosquatting) Execute ¶
func (typ *Typosquatting) Execute()
Execute starts the program and outputs results. Primarily used for CLI tools
func (*Typosquatting) FilterChain ¶
func (typ *Typosquatting) FilterChain(in <-chan Result) <-chan Result
FilterChain ...
func (*Typosquatting) FuncChain ¶
func (typ *Typosquatting) FuncChain(funcs []Module, in <-chan Result) <-chan Result
FuncChain creates a chain of information gathering functions
func (*Typosquatting) GenTypoConfig ¶
func (typ *Typosquatting) GenTypoConfig() <-chan Result
GenTypoConfig ...
func (*Typosquatting) Results ¶
func (typ *Typosquatting) Results(in <-chan Result) <-chan Result
Results ...
func (*Typosquatting) Stream ¶
func (typ *Typosquatting) Stream() <-chan Result
Stream returns the results one at a time
func (*Typosquatting) Typos ¶
func (typ *Typosquatting) Typos(in <-chan Result) <-chan Result
Typos gives typo options to a pool of workers