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.75k stars 843 forks source link

Stats (scan progress) doesn't properly calculate hosts/percentage when there are multiple probe paths #1841

Closed hourianto closed 3 months ago

hourianto commented 3 months ago

httpx version:

1.6.6

Current Behavior:

If you provide multiple paths with -path probe_paths.txt when scanning, httpx will misreport progress:

[0:47:55] | RPS: 0 | Requests: 572528 | Hosts: 332392/41549 (800%)

In this case it's 800% because my probe_paths.txt has 8 paths.

Expected Behavior:

Stats calculation should take the amount of paths into the account when calculating Hosts and progress percentage.

Steps To Reproduce:

Start any httpx scan with -path probe_paths.txt -stats with probe_paths.txt containing more than 1 path.

ehsandeep commented 3 months ago

This is now fixed in latest release - https://github.com/projectdiscovery/httpx/releases/tag/v1.6.8