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 ¶
func RunDirectoryDiscovery(ctx context.Context, config discover.DiscoverDirectoryConfig) (*discover.DiscoverDirectoryReport, error)
RunDirectoryDiscovery launches the directory discovery engine with multi-threading support
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.