struct
FileAnalyzer::Hook
- FileAnalyzer::Hook
- Struct
- Value
- Object
Overview
Most hooks (http, base64, string) recognise an endpoint by matching a
URL they found in the file against the user-supplied -u/--url. With
no url their includes?(url) test degenerates to "matches
everything", so they must not run at all — that is what #requires_url
marks.
A hook that identifies endpoints from file syntax instead (graphql
operation documents) is url-independent and has to run either way.
Gating the whole FileAnalyzer on -u used to drop those from every
default scan, so the requirement is now declared per hook rather than
assumed for all of them.
Defined in:
models/analyzer.crConstructors
Instance Method Summary
- #clone
- #copy_with(func _func = @func, requires_url _requires_url = @requires_url)
- #func : Proc(String, String, Array(Endpoint))
- #requires_url : Bool