discoverdirectory

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeResponse

func AnalyzeResponse(ctx context.Context, request common.HttpRequestResponse, validCodes map[int]bool, enableCommonResponseFilters bool, baselineSize, baselineWords int, threshold float64) (valid bool, disallowedStatus int, baselineMatch bool, standardResponseMatch bool)

AnalyzeResponse checks if the response signifies that a directory/file was found based on the response code and the baseline size and word count. It returns:

  • valid: true when the response is a genuine directory/file finding.
  • disallowedStatus: the response status code when the response was rejected solely because its status code is not in the allowed set (0 otherwise).
  • baselineMatch: true when the response matched the base response size/word profile.
  • standardResponseMatch: true when the response body matched a high-confidence soft-404 text fingerprint.

The rejection signals let the caller group these outcomes in the report instead of reporting (or silently dropping) every path individually.

func RunDirectoryDiscovery

RunDirectoryDiscovery launches the directory discovery engine with multi-threading support

Types

This section is empty.

Jump to

Keyboard shortcuts

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