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 ¶
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.