discoverdirectory

package
v0.0.285 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 16 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, checkBaseContentMatch bool, omitStandardResponses bool, baselineSize, baselineWords int, baselineSizeRandomPath *int, baselineWordsRandomPath *int, threshold float64) (valid bool, disallowedStatus int, standardResponse 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).
  • standardResponse: true when the response was rejected because its body matched a standard-response fingerprint (soft 404, WAF block, generic server error, etc.).

The disallowedStatus and standardResponse signals let the caller group these rejections 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