httpx icon indicating copy to clipboard operation
httpx copied to clipboard

Option for dsl expression based matcher / filter condition (DSL)

Open ehsandeep opened this issue 3 years ago • 0 comments

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

ehsandeep avatar Aug 30 '22 15:08 ehsandeep