types

package
v0.0.0-...-db57c93 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrichInfo

type EnrichInfo struct {
	Ip          string
	AbuseSource string
	Abuse       string
	Prefix      string
	Asn         string
	Holder      string
	Country     string
	City        string
}

type MergeResult

type MergeResult struct {
	EnrichInfo
	NucleiJsonRecord
}

type MergeResultsMap

type MergeResultsMap map[string]*MergeResult

type NucleiJsonRecord

type NucleiJsonRecord struct {
	TemplateId string `json:"template-id"`
	Info       struct {
		Name           string   `json:"name"`
		Author         []string `json:"author"`
		Tags           []string `json:"tags"`
		Reference      []string `json:"reference"`
		Severity       string   `json:"severity"`
		Classification struct {
			CveId       []string `json:"cve-id"`
			CweId       []string `json:"cwe-id"`
			CvssMetrics string   `json:"cvss-metrics"`
			CvssScore   float32  `json:"cvss-score"`
		} `json:"classification"`
		Description string `json:"description"`
	} `json:"info"`
	Type             string   `json:"type"`
	Host             string   `json:"host"`
	MatchedAt        string   `json:"matched-at"`
	ExtractedResults []string `json:"extracted-results"`
	Ip               string   `json:"ip"`
	Timestamp        string   `json:"timestamp"`
	CurlCommand      string   `json:"curl-command"`
	MatcherStatus    bool     `json:"matcher-status"`
	MatchedLine      string   `json:"matched-line"`
}

NucleiJsonRecord TODO: there is more nuclei data than this, but this is the minimum we need to enrich

type SimpleIPRecord

type SimpleIPRecord struct {
	Ip string
}

Jump to

Keyboard shortcuts

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