s-rah/onionscan

Socks version 71 not recognized

Opened this issue · 1 comments

Been running onionscan --verbose --torProxyAddress=localhost:9050 wooo.onion
results in

Socks version 71 not recognized. (This port is not an HTTP proxy; did you want to use HTTPTunnelPort?)

Tor is 100% bootstrapped

This is a "normal" error. Check out the way the check if Tor proxy is up:

......
// Detect whether a proxy is connectable and is a Tor proxy
func CheckTorProxy(proxyAddress string) ProxyStatus {
	// A trick to do this without making an outward connection is,
	// paradoxically, to try to open it as http.
	// This is documented in section 4 here: https://github.com/torproject/torspec/blob/master/socks-extensions.txt
	client := &http.Client{Timeout: 2 * time.Second}
	response, err := client.Get("http://" + proxyAddress + "/")
	if err != nil {
		switch t := err.(type) {
		case *url.Error:

......

So they are doing a get request, as stated in that comment, treating it as if it was a http proxy in order to check if it isn't haha I usually just get torproject tor check site but I guess their idea was a bit nicer since you didn't have to make a request into the internet anywhere and kept stuf local.

Long story short, you can ignore that. It is a side effect of that little workaround.