Documentation ¶
Index ¶
- func DoLookups(g *GlobalLookupFactory, c *GlobalConf) error
- func GetDNSServers(path string) ([]string, error)
- func RegisterLookup(name string, s GlobalLookupFactory)
- func ValidlookupsString() string
- type BaseGlobalLookupFactory
- func (s *BaseGlobalLookupFactory) AddFlags(f *flag.FlagSet)
- func (s *BaseGlobalLookupFactory) AllowStdIn() bool
- func (f *BaseGlobalLookupFactory) Finalize() error
- func (s *BaseGlobalLookupFactory) Help() string
- func (f *BaseGlobalLookupFactory) Initialize(c *GlobalConf) error
- func (f *BaseGlobalLookupFactory) RandomNameServer() string
- func (s *BaseGlobalLookupFactory) ZonefileInput() bool
- type BaseLookup
- type GlobalConf
- type GlobalLookupFactory
- type Lookup
- type Metadata
- type Result
- type RoutineLookupFactory
- type Status
- type TargetedDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoLookups ¶
func DoLookups(g *GlobalLookupFactory, c *GlobalConf) error
func GetDNSServers ¶
func RegisterLookup ¶
func RegisterLookup(name string, s GlobalLookupFactory)
func ValidlookupsString ¶
func ValidlookupsString() string
Types ¶
type BaseGlobalLookupFactory ¶
type BaseGlobalLookupFactory struct {
GlobalConf *GlobalConf
}
func (*BaseGlobalLookupFactory) AddFlags ¶
func (s *BaseGlobalLookupFactory) AddFlags(f *flag.FlagSet)
func (*BaseGlobalLookupFactory) AllowStdIn ¶
func (s *BaseGlobalLookupFactory) AllowStdIn() bool
func (*BaseGlobalLookupFactory) Finalize ¶
func (f *BaseGlobalLookupFactory) Finalize() error
func (*BaseGlobalLookupFactory) Help ¶
func (s *BaseGlobalLookupFactory) Help() string
func (*BaseGlobalLookupFactory) Initialize ¶
func (f *BaseGlobalLookupFactory) Initialize(c *GlobalConf) error
func (*BaseGlobalLookupFactory) RandomNameServer ¶
func (f *BaseGlobalLookupFactory) RandomNameServer() string
func (*BaseGlobalLookupFactory) ZonefileInput ¶
func (s *BaseGlobalLookupFactory) ZonefileInput() bool
type BaseLookup ¶
type BaseLookup struct { }
func (*BaseLookup) DoLookup ¶
func (base *BaseLookup) DoLookup(name string) (interface{}, Status, error)
func (*BaseLookup) DoZonefileLookup ¶
func (base *BaseLookup) DoZonefileLookup(record *dns.Token) (interface{}, Status, error)
type GlobalConf ¶
type GlobalLookupFactory ¶
type GlobalLookupFactory interface { // expected to add any necessary commandline flags if being // run as a standalone scanner AddFlags(flags *flag.FlagSet) // global initialization. Gets called once globally // This is called after command line flags have been parsed Initialize(conf *GlobalConf) error Finalize() error // We can't set variables on an interface, so write functions // that define any settings for the factory AllowStdIn() bool // Some modules have Zonefile inputs ZonefileInput() bool // Help text for the CLI Help() string // Return a single scanner which will scan a single host MakeRoutineFactory() (RoutineLookupFactory, error) RandomNameServer() string }
one RoutineLookupFactory per execution =====================================
func GetLookup ¶
func GetLookup(name string) GlobalLookupFactory
type Lookup ¶
type Lookup interface { DoLookup(name string) (interface{}, Status, error) DoZonefileLookup(record *dns.Token) (interface{}, Status, error) }
one Lookup per IP/name/connection ==========================================
type Result ¶
type Result struct { AlteredName string `json:"altered_name,omitempty"` Name string `json:"name,omitempty"` Nameserver string `json:"nameserver,omitempty"` AlexaRank int `json:"alexa_rank,omitempty"` Status string `json:"status,omitempty"` Error string `json:"error,omitempty"` Data interface{} `json:"data,omitempty"` }
type RoutineLookupFactory ¶
one RoutineLookupFactory per goroutine =====================================
type TargetedDomain ¶
Click to show internal directories.
Click to hide internal directories.