types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Organization = "projectdiscovery"

Variables

View Source
var (
	ErrIsInstalled = errors.New("already installed")
	ErrIsUpToDate  = errors.New("already up to date")

	ErrNoAssetFound = "could not find release asset for your platform (%s/%s)"
	ErrToolNotFound = "%s: tool not found in path %s: skipping"
)
View Source
var AllTools = []ToolType{}

Functions

This section is empty.

Types

type InstallType

type InstallType string
const (
	Binary InstallType = "binary"
	Go     InstallType = "go"
)

type NucleiData

type NucleiData struct {
	IgnoreHash string `json:"ignore-hash"`
	Tools      []Tool `json:"tools"`
}

type Options

type Options struct {
	// Common options
	Hosts  []string
	Silent bool
	TeamID string
	Output string

	// - Nuclei
	ScanID    string
	Templates []string
	Config    string

	// - Enumeration
	EnumerationID string
	Steps         []string
}

type Task

type Task struct {
	Tool    ToolType
	Options Options

	Result *TaskResult

	Id string
}

type TaskResult

type TaskResult struct {
	Stdout string
	Stderr string
	Error  error
}

type Tool

type Tool struct {
	Name          string            `json:"name"`
	Repo          string            `json:"repo"`
	Version       string            `json:"version"`
	GoInstallPath string            `json:"go_install_path" yaml:"go_install_path"`
	Requirements  []ToolRequirement `json:"requirements"`
	Assets        map[string]string `json:"assets"`
	InstallType   InstallType       `json:"install_type" yaml:"install_type"`
}

type ToolRequirement

type ToolRequirement struct {
	OS            string                         `json:"os"`
	Specification []ToolRequirementSpecification `json:"specification"`
}

type ToolRequirementSpecification

type ToolRequirementSpecification struct {
	Name        string `json:"name"`
	Required    bool   `json:"required"`
	Command     string `json:"command"`
	Instruction string `json:"instruction"`
}

type ToolType

type ToolType int

ToolType represents the type of tool to execute

const (
	Nuclei ToolType = iota
	Dnsx
	Shuffledns
	Naabu
	Httpx
	Katana
)

func (ToolType) String

func (t ToolType) String() string

Jump to

Keyboard shortcuts

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