urbanadventurer / WhatWeb

Next generation web scanner
https://www.morningstarsecurity.com/research/whatweb
GNU General Public License v2.0
5.19k stars 884 forks source link

SOCKS5 Proxy Support #107

Open infodox opened 11 years ago

infodox commented 11 years ago

Just a suggestion, but SOCKS support for proxies like TOR would be a nice addition :)

urbanadventurer commented 11 years ago

That's a good idea.

In the meantime you can use whatweb with SOCKS proxies by connecting to an HTTP proxy such as polipo or privoxy that is configured to connect through to a SOCKS proxy such as TOR.

bcoles commented 6 years ago

As WhatWeb uses the Net::HTTP library, this would be easy to implement with the socksify gem, although this would obviously add a dependency.

Unfortunately, WhatWeb monkey patches the HTTP lib to "modify the response HTTP headers as a string" - which seems like a bad idea.

Here's an example implementation with the socksify gem:

        http = Net::HTTP.SOCKSProxy(
          @proxy.host,
          @proxy.port
        ).new(
          @url.host,
          @url.port
)