types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 Imported by: 1 module, 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

This section is empty.

Functions

func ClipRunes added in v1.3.0

func ClipRunes(s string, limit int) string

ClipRunes truncates s to at most limit runes, appending an ellipsis when truncated.

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a time.Duration into a human-friendly string (e.g. 1h 2m 3s, 1m 5s, 5s, or 0.4s).

Types

type DNSResult added in v1.3.0

type DNSResult struct {
	IPs      string
	CNAME    string
	CDN      string
	WAF      string
	Resolved bool
	Wildcard bool
}

DNSResult holds the DNS lookup and wildcard verdict for a host.

type Filter

type Filter struct {
	Names       []string // substring match, OR'ed
	Tech        []string // per-item match, OR'ed
	WAF         string   // "", "yes", "no"
	WAFName     string
	Alive       string // "", "yes", "no"
	Status      []int
	New         bool
	Depth       int // -1 = any
	Root        string
	AuthType    string   // "", "register", "login_only", "landing"
	HasCNAME    bool     // cname <> ”
	CNAMETarget []string // substring match on cname, OR'ed
	Dangling    bool     // cname <> ” AND ips = ”
	Resolved    string   // "", "yes", "no"
}

Filter maps query flags to SQL conditions.

type Host

type Host struct {
	Host      string   `json:"host"`
	Root      string   `json:"root"`
	Depth     int      `json:"depth"`
	Sources   string   `json:"sources"`
	FirstSeen string   `json:"first_seen"`
	LastSeen  string   `json:"last_seen"`
	New       bool     `json:"new"`
	Alive     bool     `json:"alive"`
	URL       string   `json:"url"`
	Status    int      `json:"status"`
	Title     string   `json:"title"`
	Server    string   `json:"server"`
	Tech      []string `json:"tech"`
	IPs       string   `json:"ips"`
	CNAME     string   `json:"cname"`
	CDN       string   `json:"cdn"`
	WAF       string   `json:"waf"`
	Length    int      `json:"length"`
	AuthType  string   `json:"auth_type"`
	AuthURL   string   `json:"auth_url"`
}

Host represents one row of the hosts table.

type HostRef added in v1.2.0

type HostRef struct {
	Host      string `json:"host"`
	Referrer  string `json:"referrer"`
	Source    string `json:"source"`
	FirstSeen string `json:"first_seen"`
	LastSeen  string `json:"last_seen"`
}

HostRef represents a content-derived reference from referrer to host.

type Options

type Options struct {
	// Action subcommand (scan, query, report)
	Command string

	// Target Inputs
	Domain        string
	DomainList    string
	Resume        bool
	SkipCompleted bool

	// Output & Storage
	DBPath string

	// Recursion / Crawling
	Depth    int
	MaxHosts int
	Exclude  goflags.StringSlice

	// Subfinder Configuration
	SubfinderTimeout     int
	SubfinderMaxTime     int
	SubfinderConcurrency int
	ProviderConfig       string

	// DNSX Resolution Configuration
	NoDNS      bool
	NoWildcard bool
	DNSThreads int
	DNSRate    int
	DNSTimeout int
	Resolvers  string

	// HTTPX Probing Configuration
	RateLimit       int
	Threads         int
	Timeout         int
	FollowRedirects bool
	NoProbe         bool
	ProbeOnly       bool

	// Asset Role / Auth Classification
	NoAuth      bool
	AuthThreads int

	// Content-Derived Host Discovery
	NoContent     bool
	ContentDepth  int
	ContentAssets int

	// Query / Filtering
	Query        bool
	Names        goflags.StringSlice
	Tech         goflags.StringSlice
	HasWAF       bool
	NoWAF        bool
	WAFName      string
	Alive        bool
	Dead         bool
	Status       string
	NewOnly      bool
	FilterDepth  int
	FilterRoot   string
	RawSQL       string
	OutputFormat string
	AuthType     string
	Target       string
	HasCNAME     bool
	CNAMETarget  goflags.StringSlice
	Dangling     bool
	Resolved     bool

	// Reporting & Web Dashboard Server
	Report       bool
	ReportOutput string
	Serve        string
	Port         int

	// General
	Silent  bool
	Version bool
}

Options contains the configuration options for the assfin runner.

type Probe

type Probe struct {
	URL        string
	Title      string
	Server     string
	IPs        string
	CDN        string
	WAF        string
	Status     int
	Length     int
	Tech       []string
	AuthType   string
	AuthURL    string
	Referenced []string
	RefSources map[string]string
	AssetURLs  []string
}

Probe is the subset of an httpx result stored per host.

type ReportData

type ReportData struct {
	Generated string     `json:"generated"`
	Roots     []RootInfo `json:"roots"`
	Hosts     []Host     `json:"hosts"`
	Refs      []HostRef  `json:"refs,omitempty"`
}

ReportData represents data passed to HTML template rendering.

type RootInfo

type RootInfo struct {
	Root        string  `json:"root"`
	Last        string  `json:"last"`
	Started     string  `json:"started,omitempty"`
	Finished    string  `json:"finished,omitempty"`
	Duration    string  `json:"duration,omitempty"`
	DurationSec float64 `json:"duration_sec,omitempty"`
	Scans       int     `json:"scans"`
}

RootInfo represents summary information of a scanned root domain.

type SourceStat added in v1.4.0

type SourceStat struct {
	Source       string `json:"source"`
	Returned     int    `json:"returned"`
	Unresolvable int    `json:"unresolvable"`
	Malformed    int    `json:"malformed"`
}

SourceStat tracks per-source subdomain discovery and rejection counts.

Jump to

Keyboard shortcuts

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