Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClipRunes ¶ added in v1.3.0
ClipRunes truncates s to at most limit runes, appending an ellipsis when truncated.
func FormatDuration ¶
FormatDuration formats a time.Duration into a human-friendly string (e.g. 1h 2m 3s, 1m 5s, 5s, or 0.4s).
Types ¶
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.