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

-ms method not working #1872

Closed Phoenix1112 closed 1 month ago

Phoenix1112 commented 1 month ago

Even though there is no setup-token keyword in the response, httpx shows wrong results

echo "https://telescope.dyson.com/api/session/properties" | httpx -path "/api/session/properties" -ms '"setup-token":"'
    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.7 (outdated)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
https://telescope.dyson.com/api/session/properties

I just installed version 1.6.8, but the same problem persists for the new version.

Phoenix1112 commented 1 month ago

I noticed that version 1.6.0 is stable. I switched back to the old version.

dogancanbakir commented 1 month ago

Similar to https://github.com/projectdiscovery/httpx/issues/1793#issuecomment-2199902011. This should work if you mutate the input as

$ echo "https://telescope.dyson.com/api/session/properties" | httpx -path "/api/session/properties" -ms '`"setup-token":"`'

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.8 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable