httpx
httpx copied to clipboard
Windows -path does not read files
httpx version:
1.2.4
Current Behavior:
-path filename does not work on windows
Expected Behavior:
the application works properly on windows
Steps To Reproduce:
http.exe -l hosts.txt -path path.txt -sc -v
Anything else:

The tools seem to behave as expected:
PS C:\Users\user\go\src\github.com\projectdiscovery\httpx\cmd\httpx> cat .\hosts.txt
192.168.1.1
PS C:\Users\user\go\src\github.com\projectdiscovery\httpx\cmd\httpx> cat .\path.txt
/test1
/test2
PS C:\Users\user\go\src\github.com\projectdiscovery\httpx\cmd\httpx> .\httpx.exe -l hosts.txt -path path.txt -sc -v
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/ v1.2.4
projectdiscovery.io
Use with caution. You are responsible for your actions.
Developers assume no liability and are not responsible for any misuse or damage.
https://192.168.1.1/test1 [404]
https://192.168.1.1/test2 [404]
Could you ensure that the file path.txt exists in the current folder?

i still get the same error all files are in the folder
This behavior is really weird. I tried to download the httpx binary directly and place it in the onedrive folder along with the files hosts and path.txt files:

If you execute the command in powershell or using .\path.txt do you still get the same result?
Moving to the discussion as we are unable to replicate this and require more information before we can work on this.