zgrab2 icon indicating copy to clipboard operation
zgrab2 copied to clipboard

Socks Proxy Support

Open djtm opened this issue 6 years ago • 2 comments

feature request: allow scanning via socks5 proxy: https://github.com/golang/net/blob/master/internal/socks/client.go

djtm avatar Apr 17 '18 05:04 djtm

It should work by default with the http_proxy variable, but it seems it doesn't. https://golang.org/src/net/http/transport.go#L35

e.g. it does not resolve IPs via socks:

[ERROR] banner-grab: Could not connect to remote host https://www.nytimes3xbfgragh.onion/: Get https://www.nytimes3xbfgragh.onion/: dial tcp: lookup www.nytimes3xbfgragh.onion on ...:53: no such host

djtm avatar Apr 17 '18 18:04 djtm

The fix should be as easy as this: https://godoc.org/golang.org/x/net/proxy#FromEnvironment

djtm avatar Apr 17 '18 18:04 djtm