httpx
httpx copied to clipboard
Option for dsl expression based matcher / filter condition (DSL)
Please describe your feature request:
Similar to https://github.com/projectdiscovery/nuclei/issues/2358, dsl expression based matcher / filter condition can be supported on available json keys named fields.
-mdc, -match-condition string[] match response with dsl expression condition
-fdc, -filter-condition string[] filter response with dsl expression condition
Examples:
httpx -mdc "contains(content_type, 'text/html')"
httpx -fdc "contains(content_type, 'text/html')"
httpx -mdc "status_code == 200 && contains(body, 'HackerMan')"
Describe the use case of this feature:
- Multiple + Conditional match / filter
- Will cover https://github.com/projectdiscovery/httpx/issues/643
- No more new cli flags for match/filter