utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfigLocation = filepath.Join(configDir, "config.yaml")

	Hosts    []string
	Networks []string
	Domains  []string
)
View Source
var OptionCmd = &options{}
View Source
var Results = make(map[string]Result)

Functions

func Contains added in v1.0.2

func Contains(s []string, e string) bool

func ExtractDomain added in v1.0.2

func ExtractDomain(domain string, silent bool)

func ExtractDomains

func ExtractDomains(ipRange string)

func ExtractNetwork

func ExtractNetwork(ip string, silent bool, onlydomains bool, onlynetworks bool)

func GetVtReport

func GetVtReport(domain string) uint64

func IdentifyTarget

func IdentifyTarget(target string)

func IsIpAddr

func IsIpAddr(ipAddr string) bool

func IsIpNet

func IsIpNet(ipAddr string) bool

func ParseHTML added in v1.0.2

func ParseHTML(body io.Reader)

func ParseStdin added in v1.0.2

func ParseStdin()

func Request added in v1.0.2

func Request(url string) string

func RunCrawler added in v1.0.2

func RunCrawler()

func ShowBanner

func ShowBanner()

Types

type Conf added in v1.0.2

type Conf struct {
	Domains  []string `yaml:"domains"`
	Ipaddrs  []string `yaml:"ipaddrs"`
	Networks []string `yaml:"networks"`
	Regex    string   `yaml:"regex"`
}

func (*Conf) GetConf added in v1.0.2

func (c *Conf) GetConf(filename string) *Conf

type Result added in v1.0.2

type Result struct {
	IPAddr  string
	PTR     string
	Domain  string
	VtScore uint64
}

Jump to

Keyboard shortcuts

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