runner

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const Version = `v0.0.6`

Version is the current version

Variables

View Source
var (
	BaseUrl                  = env.GetEnvOrDefault("CVEMAP_API_URL", "https://cve.projectdiscovery.io/api/v1")
	PDCPApiKey               = ""
	DEFAULT_FEILD_CHAR_LIMIT = env.GetEnvOrDefault("DEFAULT_FEILD_CHAR_LIMIT", 20)
)

Functions

func AuthWithPDCP

func AuthWithPDCP()

AuthWithPDCP is used to authenticate with PDCP

func DoHealthCheck added in v0.0.6

func DoHealthCheck(opts Options) string

func GetUpdateCallback

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates proxify

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
	RemotlyExploitable string
	EnablePageKeys     bool
	Json               bool
	Limit              int
	Offset             int
	Version            bool
	DisableUpdateCheck bool
	Silent             bool
	Verbose            bool
	Debug              bool
	HealthCheck        bool
}

func ParseOptions

func ParseOptions() *Options

type Runner

type Runner struct {
	Options       *Options
	CvemapService *service.Cvemap
}

func New

func New(options *Options) *Runner

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