s-rah / onionscan

OnionScan is a free and open source tool for investigating the Dark Web.
https://twitter.com/OnionScan
Other
2.83k stars 592 forks source link

Socks version 71 not recognized #176

Open WardPearce opened 2 years ago

WardPearce commented 2 years ago

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 commented 2 years ago

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.