Documentation
¶
Index ¶
Constants ¶
const ( ModuleID = "internal-header-probe" ModuleName = "Internal Header Probe" ModuleShort = "" /* 127-byte string literal not displayed */ )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
modkit.BaseActiveModule
// contains filtered or unexported fields
}
Module implements the internal-header-probe active scanner.
func (*Module) CanProcess ¶
func (m *Module) CanProcess(ctx *httpmsg.HttpRequestResponse) bool
CanProcess runs only when the response advertises request/response headers via the CORS Allow-/Expose-Headers headers — the signal that the host speaks a custom header protocol worth probing.
func (*Module) IncludesBaseCanProcess ¶
IncludesBaseCanProcess returns false: this module uses a custom CanProcess that gates purely on the advertised-header response, not the base URL/media filters.
func (*Module) ScanPerRequest ¶
func (m *Module) ScanPerRequest( ctx *httpmsg.HttpRequestResponse, httpClient *http.Requester, scanCtx *modkit.ScanContext, ) ([]*output.ResultEvent, error)
ScanPerRequest discovers the advertised custom headers, plants OAST callbacks, and reports headers whose response body reproducibly changes with the supplied value (beyond the endpoint's natural variance).