httpx icon indicating copy to clipboard operation
httpx copied to clipboard

Windows -path does not read files

Open Erenlancaster opened this issue 2 years ago • 1 comments

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:

image

Erenlancaster avatar Aug 30 '22 21:08 Erenlancaster

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?

Mzack9999 avatar Sep 19 '22 05:09 Mzack9999

image

i still get the same error all files are in the folder

Erenlancaster avatar Sep 30 '22 18:09 Erenlancaster

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: image

If you execute the command in powershell or using .\path.txt do you still get the same result?

Mzack9999 avatar Oct 03 '22 14:10 Mzack9999

Moving to the discussion as we are unable to replicate this and require more information before we can work on this.

ehsandeep avatar Nov 20 '22 12:11 ehsandeep