exploit

package
v0.16.11 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decoder = &decoder.AbstractDecoder{
	Type:        types.Type_NC_Exploit,
	Name:        "Exploit",
	Description: "An exploit proof of concept that is applicable for a version of software observed on the network",
	PostInit: func(e *decoder.AbstractDecoder) error {
		// Load vulnerabilities DB index
		var (
			err       error
			indexName = db.Path(resolvers.DataBaseFolderPath)
		)

		exploitLog, _, err = logging.InitZapLogger(
			decoderconfig.Instance.Out,
			"exploit",
			decoderconfig.Instance.Debug,
		)
		if err != nil {
			return err
		}

		db.ExploitsIndex, err = db.Open(indexName)
		if err != nil {

			db.ExploitsIndex = nil
			exploitLog.Warn("exploit lookups disabled", zap.String("path", indexName), zap.Error(err))
		}

		return nil
	},
	DeInit: func(decoder *decoder.AbstractDecoder) error {
		db.Close(db.ExploitsIndex)

		return exploitLog.Sync()
	},
}

Decoder for protocol analysis and writing audit records to disk.

Functions

func ExploitsLookup

func ExploitsLookup(software *types.Software)

ExploitsLookup searches netcap.sqlite for exploits applicable to software. Results require an explicit reference to an applicable CVE.

func ResetExploitStore

func ResetExploitStore()

ResetExploitStore clears the exploit deduplication store This should be called when resetting state between processing different files

Types

This section is empty.

Jump to

Keyboard shortcuts

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