utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 22 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 IdentifyTarget

func IdentifyTarget(target string)

func IsIpAddr

func IsIpAddr(ipAddr string) bool

func IsIpNet

func IsIpNet(ipAddr string) bool

func LoadParameters added in v1.0.3

func LoadParameters()

func ParseStdin added in v1.0.2

func ParseStdin()

func ShowBanner

func ShowBanner()

Types

type CustomTransport added in v1.0.7

type CustomTransport struct {
	Transport http.RoundTripper
	UserAgent string
}

CustomTransport struct that embeds http.RoundTripper

func (*CustomTransport) RoundTrip added in v1.0.7

func (c *CustomTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip method to add the custom User-Agent header

type Hurricane added in v1.0.3

type Hurricane struct {
}

func (*Hurricane) ExtractDomain added in v1.0.3

func (h *Hurricane) ExtractDomain(domain string)

func (*Hurricane) ExtractDomains added in v1.0.3

func (h *Hurricane) ExtractDomains(ipRange string)

func (*Hurricane) ExtractNetwork added in v1.0.3

func (h *Hurricane) ExtractNetwork(ip string)

func (*Hurricane) ParseHTML added in v1.0.3

func (h *Hurricane) ParseHTML(body io.Reader)

func (*Hurricane) Request added in v1.0.3

func (h *Hurricane) Request(url string) string

func (*Hurricane) RunCrawler added in v1.0.3

func (h *Hurricane) RunCrawler()

type Result added in v1.0.2

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

type Virustotal added in v1.0.3

type Virustotal struct {
}

func (*Virustotal) GetVtReport added in v1.0.3

func (c *Virustotal) GetVtReport(domain string) uint64

type Workflow added in v1.0.3

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

func (*Workflow) GetConf added in v1.0.3

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

Jump to

Keyboard shortcuts

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