passive

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 56 Imported by: ? 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

Overview

Package passive provides capability for doing passive subdomain enumeration on targets.

Index

Constants

This section is empty.

Variables

View Source
var NameSourceMap = make(map[string]subscraping.Source, len(AllSources))

Functions

This section is empty.

Types

type Agent

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

Agent is a struct for running passive subdomain enumeration against a given host. It wraps subscraping package and provides a layer to build upon.

func New

func New(sourceNames, excludedSourceNames []string, useAllSources, useSourcesSupportingRecurse bool) *Agent

New creates a new agent for passive subdomain discovery

func (*Agent) EnumerateSubdomains

func (a *Agent) EnumerateSubdomains(domain string, proxy string, rateLimit int, timeout int, maxEnumTime time.Duration, options ...EnumerateOption) chan subscraping.Result

EnumerateSubdomains wraps EnumerateSubdomainsWithCtx with an empty context

func (*Agent) EnumerateSubdomainsWithCtx

func (a *Agent) EnumerateSubdomainsWithCtx(ctx context.Context, domain string, proxy string, rateLimit int, timeout int, maxEnumTime time.Duration, options ...EnumerateOption) chan subscraping.Result

EnumerateSubdomainsWithCtx enumerates all the subdomains for a given domain

func (*Agent) GetStatistics

func (a *Agent) GetStatistics() map[string]subscraping.Statistics

type EnumerateOption

type EnumerateOption func(opts *EnumerationOptions)

func WithCustomRateLimit

func WithCustomRateLimit(crl *subscraping.CustomRateLimit) EnumerateOption

type EnumerationOptions

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

Jump to

Keyboard shortcuts

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