Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socks version 71 not recognized #176

Open
WardPearce opened this issue Sep 28, 2021 · 1 comment
Open

Socks version 71 not recognized #176

WardPearce opened this issue Sep 28, 2021 · 1 comment

Comments

@WardPearce
Copy link

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

@StasonJatham
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants