vuln

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package vuln provides entry point for vulnerability lookup plugins

Index

Constants

This section is empty.

Variables

View Source
var Checkers = &checkerExt{
	newExtensionPoint(new(Checker)),
}

Checkers represent Checker extensionPoint

Functions

func RegisterExtension

func RegisterExtension(extension interface{}, name string) []string

RegisterExtension unregisters the extension

func UnregisterExtension

func UnregisterExtension(name string) []string

UnregisterExtension unregisters the extension

Types

type Checker

type Checker interface {
	CheckIPPort(ctx context.Context, ip string, port int) (found bool, results []Result, err error)
	Initialize(config []byte) error
}

Checker defines dispatch to extensions

type Result

type Result struct {
	Provider string `json:"provider"`
	Term     string `json:"term"`
	Result   string `json:"result"`
}

Result defines the struct that must be returned by a vulnerability lookup plugin

Jump to

Keyboard shortcuts

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