Documentation ¶
Index ¶
- Constants
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func FRegister(name string, efunc ...Extra)
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func TRegister(name string, typo ...Typo)
- 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) GetFormat(format string)
- func (c *Config) GetFuncs(funcs []string)
- func (c *Config) GetHeaders(funcs []Extra)
- func (c *Config) GetKeyboards(keyboards []string)
- func (c *Config) GetTypos(typos []string)
- func (c *Config) GetVerbose(verbose bool)
- type Domain
- type Extra
- type ExtraFunc
- type OutputResult
- type Typo
- type TypoConfig
- type TypoFunc
- type TypoResult
- type URLInsane
- func (urli *URLInsane) Dedup(in <-chan TypoResult) <-chan TypoResult
- func (urli *URLInsane) DistChain(in <-chan TypoResult) <-chan TypoResult
- func (urli *URLInsane) Execute() (res []TypoResult)
- func (urli *URLInsane) FuncChain(funcs []Extra, in <-chan TypoResult) <-chan TypoResult
- func (urli *URLInsane) GenTypoConfig() <-chan TypoConfig
- func (urli *URLInsane) Output(in <-chan TypoResult)
- func (urli *URLInsane) Results(in <-chan TypoConfig) <-chan TypoResult
- func (urli *URLInsane) Start()
- func (urli *URLInsane) Stream() <-chan TypoResult
- func (urli *URLInsane) Typos(in <-chan TypoConfig) <-chan TypoConfig
Constants ¶
const ( VERSION = "0.5.2" DEBUG = false LOGO = ` _ _ ____ _ ___ | | | || _ \ | | |_ _| _ __ ___ __ _ _ __ ___ | | | || |_) || | | | | '_ \ / __| / _' || '_ \ / _ \ | |_| || _ < | |___ | | | | | |\__ \| (_| || | | || __/ \___/ |_| \_\|_____||___||_| |_||___/ \__,_||_| |_| \___| Version: ` + VERSION + "\n" )
Variables ¶
var FREGISTRY = make(map[string][]Extra)
The registry for extra functions
var TLD = []string{}/* 8621 elements not displayed */
var TREGISTRY = make(map[string][]Typo)
The registry for typos functions
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type BasicConfig ¶
type BasicConfig struct { Domains []string `json:"domains,omitempty"` Keyboards []string `json:"keyboards,omitempty"` Typos []string `json:"typos,omitempty"` Funcs []string `json:"funcs,omitempty"` Concurrency int `json:"concurrency,omitempty"` Format string `json:"format,omitempty"` File string `json:"file,omitempty"` Verbose bool `json:"verbose,omitempty"` }
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func CobraConfig ¶
CobraConfig creates a configuration from a cobra command and arguments
func (*Config) GetKeyboards ¶
GetKeyboards retrieves a list of keyboards
type Domain ¶
type Extra ¶
type ExtraFunc ¶
type ExtraFunc func(TypoResult) []TypoResult
ExtraFunc defines a function to register typos.
type OutputResult ¶
type OutputResult map[string]interface{}
type Typo ¶
type TypoConfig ¶
type TypoFunc ¶
type TypoFunc func(TypoConfig) []TypoConfig
TypoFunc defines a function to register typos.
type TypoResult ¶
type URLInsane ¶
type URLInsane struct {
// contains filtered or unexported fields
}
func (*URLInsane) Dedup ¶
func (urli *URLInsane) Dedup(in <-chan TypoResult) <-chan TypoResult
Dedup filters the results for unique variations of domains
func (*URLInsane) DistChain ¶
func (urli *URLInsane) DistChain(in <-chan TypoResult) <-chan TypoResult
DistChain creates workers of chained functions
func (*URLInsane) Execute ¶
func (urli *URLInsane) Execute() (res []TypoResult)
Execute program returning results
func (*URLInsane) FuncChain ¶
func (urli *URLInsane) FuncChain(funcs []Extra, in <-chan TypoResult) <-chan TypoResult
FuncChain creates a chain of extra functions
func (*URLInsane) GenTypoConfig ¶
func (urli *URLInsane) GenTypoConfig() <-chan TypoConfig
GenTypoConfig
func (*URLInsane) Output ¶
func (urli *URLInsane) Output(in <-chan TypoResult)
func (*URLInsane) Results ¶
func (urli *URLInsane) Results(in <-chan TypoConfig) <-chan TypoResult
Results
func (*URLInsane) Start ¶
func (urli *URLInsane) Start()
Start executes the program and outputs results. Primarily used for CLI tools
func (*URLInsane) Stream ¶
func (urli *URLInsane) Stream() <-chan TypoResult
Stream results via channels
func (*URLInsane) Typos ¶
func (urli *URLInsane) Typos(in <-chan TypoConfig) <-chan TypoConfig
Typos gives typo options to a pool of workers