runner

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Version = `v2.0.1`

Version is the current version

Variables

View Source
var (
	PDCPApiKey               = ""
	DEFAULT_FIELD_CHAR_LIMIT = env.GetEnvOrDefault("DEFAULT_FIELD_CHAR_LIMIT", 20)
)

Functions

func AuthWithPDCP

func AuthWithPDCP()

AuthWithPDCP is used to authenticate with PDCP

func DoHealthCheck

func DoHealthCheck(opts Options) string

func GetUpdateCallback

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates vulnx

Types

type Options

type Options struct {
	PdcpAuth  string
	CveIds    goflags.StringSlice
	CweIds    goflags.StringSlice
	Vendor    goflags.StringSlice
	Product   goflags.StringSlice
	Eproduct  goflags.StringSlice
	Severity  goflags.StringSlice
	CvssScore goflags.StringSlice
	//cvssMetrics        goflags.StringSlice
	EpssPercentile goflags.StringSlice
	//year               goflags.StringSlice
	Assignees goflags.StringSlice
	Reference goflags.StringSlice
	//vulnType           goflags.StringSlice
	IncludeColumns []string
	ExcludeColumns []string
	TableHeaders   []string
	ListId         bool
	EpssScore      string
	Cpe            string
	VulnStatus     string
	Age            string
	Kev            string
	//trending           bool
	Hackerone           string
	HasNucleiTemplate   string
	HasPoc              string
	Search              string
	RemotelyExploitable string
	EnablePageKeys      bool
	Json                bool
	Limit               int
	Offset              int
	Version             bool
	DisableUpdateCheck  bool
	Silent              bool
	Verbose             bool
	Debug               bool
	HealthCheck         bool
	HTTPProxy           string
	Output              string
}

func ParseOptions

func ParseOptions() *Options

type Runner

type Runner struct {
	Options      *Options
	VulnxService *service.Vulnx
}

func New

func New(options *Options) (*Runner, error)

func (*Runner) GetCves

func (r *Runner) GetCves() (*types.CVEBulkData, error)

func (*Runner) Run

func (r *Runner) Run()

Jump to

Keyboard shortcuts

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