pkg

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterTargetsByTemplatePorts added in v0.2.0

func FilterTargetsByTemplatePorts(ctx context.Context, targetsFile, templatesFile, scanID, chunkID string) ([]string, []string, error)

FilterTargetsByTemplatePorts extracts ports from templates, runs naabu against (host x ports), and returns the URLs whose ports were reachable plus the merged port list.

func GetNucleiDefaultTemplateDir added in v0.2.0

func GetNucleiDefaultTemplateDir() string

GetNucleiDefaultTemplateDir returns the default nuclei template directory, cached.

The cache is primed at boot by ensureNucleiTemplates, before a staged install can repoint the underlying global at a temporary directory. Calling this for the first time during an install would cache a path that is about to be deleted, so keep the boot-time call first.

func Run

func Run(ctx context.Context, task *types.Task) (*types.TaskResult, []string, error)

Types

This section is empty.

Directories

Path Synopsis
Package agentdb persists agent info, structured logs, and resource metrics in a local SQLite database so they survive restarts and can be uploaded for offline investigation.
Package agentdb persists agent info, structured logs, and resource metrics in a local SQLite database so they survive restarts and can be uploaded for offline investigation.
Package envconfig owns every environment variable the agent reads.
Package envconfig owns every environment variable the agent reads.
Package path is useful for managing PATH as part of the Environment in the Windows HKey Local User registry.
Package path is useful for managing PATH as part of the Environment in the Windows HKey Local User registry.
Package prereq runs pd-agent's startup preflight: warm up the embedded headless browser and warn on Windows if Defender exclusions aren't set.
Package prereq runs pd-agent's startup preflight: warm up the embedded headless browser and warn on Windows if Defender exclusions aren't set.
Package runtools embeds ProjectDiscovery scanners (tlsx, dnsx, httpx, naabu, nuclei) as Go SDK calls.
Package runtools embeds ProjectDiscovery scanners (tlsx, dnsx, httpx, naabu, nuclei) as Go SDK calls.
Package scanlog ships raw per-chunk nuclei output (matched and unmatched) to one or more storage destinations.
Package scanlog ships raw per-chunk nuclei output (matched and unmatched) to one or more storage destinations.
Package selfupdate downloads a new pd-agent binary from GitHub releases and replaces the running binary via rename + syscall.Exec.
Package selfupdate downloads a new pd-agent binary from GitHub releases and replaces the running binary via rename + syscall.Exec.
Package validate holds shared input checks for agent-supplied identifiers.
Package validate holds shared input checks for agent-supplied identifiers.

Jump to

Keyboard shortcuts

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