projectdiscovery / httpx

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
https://docs.projectdiscovery.io/tools/httpx
MIT License
7.53k stars 822 forks source link

HTTPx v1.6.4 onwards has a broken `filter` feature. #1804

Closed SecGus closed 2 months ago

SecGus commented 2 months ago

httpx version:

HTTPx version 1.6.4 and onwards.

Current Behavior:

-fs does not properly filter strings.

Expected Behavior:

Filter out strings specified in the argument.

Steps To Reproduce:

go install -v github.com/projectdiscovery/httpx/cmd/httpx@v1.6.3
echo https://www.google.com/ | httpx -fs 'google' # Will return no output
httpx -up # Update to latest version
echo https://www.google.com/ | httpx -fs 'google' # Will output google.com
SecGus commented 2 months ago

It appears the filter feature was broken when trying to add support for multiple filter inputs.