scanner

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package scanner contains AppFinger's single-target scanning engine. It is safe to share one Scanner between callers; concurrency is owned by the caller (for example xmap), not by this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name   string            `json:"name"`
	Values map[string]string `json:"values,omitempty"`
	Rule   string            `json:"rule,omitempty"`
	URL    string            `json:"url,omitempty"`
}

type Config

type Config struct {
	Fetcher *fetch.Fetcher
	Rules   *rule.RuleSet
}

type Result

type Result struct {
	Target     string
	Banner     *fetch.Banner
	Components []Component
	Duration   time.Duration `json:"duration"`
}

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Scanner, error)

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, target string) (*Result, error)

Jump to

Keyboard shortcuts

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