nuclei

package
v0.0.0-...-7e2dd01 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGenericError = errors.New("something went wrong when calling nuclei, please check if the args are correct")
View Source
var ErrInvalidJsonBody = errors.New("invalid json body")
View Source
var ErrInvalidSeverity = errors.New("invalid severity")
View Source
var ErrInvalidUrlOrList = errors.New("you need to insert an url or list")

Functions

This section is empty.

Types

type Info

type Info struct {
	Name        string   `json:"name"`
	Tags        []string `json:"tags"`
	Description string   `json:"description"`
	Reference   []string `json:"reference"`
	Severity    string   `json:"severity"`
}

type NucleiDB

type NucleiDB struct {
	TemplateID string
	Host       string
	Severity   string
	Name       string
	Tags       string
	MatchedAt  string
}

type NucleiResult

type NucleiResult struct {
	TemplateID  string    `json:"template-id"`
	Info        Info      `json:"info"`
	MatcherName string    `json:"matcher-name"`
	Type        string    `json:"type"`
	Host        string    `json:"host"`
	MatchedAt   string    `json:"matched-at"`
	Timestamp   time.Time `json:"timestamp"`
	CurlCommand string    `json:"curl-command"`
}

type Repository

type Repository interface {
	GetResultsBySeverity(severity string, latest int) ([]NucleiDB, error)
	GetAllResults(latest int) ([]NucleiDB, error)
	AddSubdomain(res NucleiResult) error
}

type Service

type Service interface {
	GetResultsBySeverity(severity string, printFlags string, delimiter string, latest int) error
	GetAllResults(severity string, printFlags string, delimiter string) error
	Scan(url string, list string, info bool) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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