maurosoria / dirsearch

Web path scanner
11.93k stars 2.31k forks source link

Error with the proxy: None #1299

Closed LanmpPython closed 1 month ago

LanmpPython commented 1 year ago

image Why would you prompt for this error

XingXiaoWu commented 9 months ago

same question

shelld3v commented 9 months ago

@LanmpPython @XingXiaoWu Can you try running with --log file.log and give me the file.log file? It will help me debug this issue. Thanks!

maurosoria commented 8 months ago

Hello !

Was this woukarounded?

Kagantua commented 7 months ago

Okay, I'm having the same problem. In my case, I'm using v2rayn to set up a global proxy, in which case dirsearch would have to use the proxy parameter to set up a local proxy port in order for it to work.

latxz2025 commented 5 months ago

Maybe I used a system proxy, but I turned off the manual proxy in the settings of Windows 11 to solve it.

nrathaus commented 5 months ago

It sounds like a system proxy setting is overriding the code use by requests.Request to send out requests, and failing, the error returned by dirsearch assumes the ProxyError is from the proxy variable, but this is not true as it is a system proxy that is returning the error

I believe changing this: err_msg = f"Error with the proxy: {proxy}"

To this: err_msg = f"Error with the proxy: {e}"

Will reveal the error that the system proxy is to blame here

shelld3v commented 2 months ago

@nrathaus Great finding 🙏 I will submit a PR for this