Documentation
¶
Index ¶
- Variables
- func ParallelFilterOfflineTargets(ctx context.Context, targets []string, debugLog *debug.DebugLogger, ...) []string
- func PrintFCertificates(gctx *globalcontext.GlobalContext)
- type ScanConfig
- type ScanContext
- func (h *ScanContext) AddFQDN(fqdn string)
- func (h *ScanContext) AddResult(target string, host string, result interface{})
- func (h *ScanContext) AddTarget(target string)
- func (h *ScanContext) FlagAllHosts()
- func (h *ScanContext) GetHosts() []string
- func (h *ScanContext) GetTargets() []string
- func (h *ScanContext) GetUnscannedHosts() []string
- type ScanItem
- type ScanManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyQueue = errors.New("queue is empty. Expected error")
View Source
var InternalIgnoredHosts = []string{
"*.cloudflaressl.com",
"*.your-server.de",
"*.netlify.com",
"*.cloudflare.com",
"*.netlify.app",
"*.t-ipconnect.de",
"*.versanet.de",
}
InternalIgnoredHosts contains hosts that are automatically ignored during scans. These are typically CDN/proxy certificate domains that pollute results.
Functions ¶
func PrintFCertificates ¶
func PrintFCertificates(gctx *globalcontext.GlobalContext)
Types ¶
type ScanConfig ¶
type ScanConfig struct {
IgnoredHosts []string // User-provided ignored hosts (displayed in output)
RequiredHosts []regexp.Regexp
ParallelWorkers int
UsePTR bool
UseCRTSH bool
CrtshDB string // Path to the crt.sh local cache directory
MaxEpochs int
DisableRecon bool
NoIPasSNI bool // Disables sending the target IP as SNI value (non-RFC compliant check)
SearchHeaders bool // Enables broader search for domains/URLs in HTTP response headers
Timeout time.Duration // Global timeout for network operations
}
func NewConfig ¶
func NewConfig() *ScanConfig
func (*ScanConfig) AllIgnoredHosts ¶
func (c *ScanConfig) AllIgnoredHosts() []string
AllIgnoredHosts returns both user-provided and internal ignored hosts for filtering.
type ScanContext ¶
type ScanContext struct {
// contains filtered or unexported fields
}
func NewScanContext ¶
func NewScanContext(config *ScanConfig) *ScanContext
func (*ScanContext) AddFQDN ¶
func (h *ScanContext) AddFQDN(fqdn string)
func (*ScanContext) AddResult ¶
func (h *ScanContext) AddResult(target string, host string, result interface{})
func (*ScanContext) AddTarget ¶
func (h *ScanContext) AddTarget(target string)
func (*ScanContext) FlagAllHosts ¶
func (h *ScanContext) FlagAllHosts()
func (*ScanContext) GetHosts ¶
func (h *ScanContext) GetHosts() []string
func (*ScanContext) GetTargets ¶
func (h *ScanContext) GetTargets() []string
func (*ScanContext) GetUnscannedHosts ¶
func (h *ScanContext) GetUnscannedHosts() []string
type ScanManager ¶
type ScanManager struct {
// contains filtered or unexported fields
}
func DoScan ¶
func DoScan(ctx context.Context, hosts []string, targets []string, config *ScanConfig, gctx *globalcontext.GlobalContext) *ScanManager
func NewScanManager ¶
func NewScanManager(config *ScanConfig, gctx *globalcontext.GlobalContext) *ScanManager
func (*ScanManager) EnqueueAll ¶
func (s *ScanManager) EnqueueAll(hostnames []string)
func (*ScanManager) ParallelRun ¶
func (*ScanManager) ShowResults ¶
func (s *ScanManager) ShowResults()
Click to show internal directories.
Click to hide internal directories.