Closed carpet92 closed 4 years ago
According to logs, it looks like there are some problems with initiating connection via websocket. Firstly, please try to access and use PixelPlanet from browser while connecting through Tor. If it does not work, then it is probably external cause - either Tor itself or PixelPlanet. Also, websocket connection used by bot is handled by third-party library. If PixelPlanet works fine in browser, I guess it can be limitation of that library. If so, I can try replacing it with another one.
Hello @Zx-EvM, Is the issue still relevant?
@Topinambur223606 it is looks like pixelplanet detect and blocks access for "harmful" IPs via special APIs
https://github.com/pixelplanetdev/pixelplanet/blob/master/src/core/isProxy.js#L17-L50 https://github.com/pixelplanetdev/pixelplanet/blob/master/src/core/isProxy.js#L59 https://github.com/pixelplanetdev/pixelplanet/blob/master/src/core/isProxy.js#L86
If I recall correctly, PixelPlanet does not drop the connection if proxy is detected; instead, it refuses to place pixels. However, implementation could have been changed or websocket connection could be interrupted somehow by Tor itself. I think we still need to check if websocket connection works in browser when connected through Tor network; if so, it is definitely the bot issue.
@Topinambur223606 okay. Tor browser itself does not open pixelplanet website at all. But if I use tor socks or tor https proxy in Windows proxy configuration (for make chrome works via tor proxy) I just have got infinity captcha and can not place pixel.
Well, I guess infinite captcha is the indicator of unstable websocket connection, which confirms my earlier assumptions. Taking into account that:
I think that we can consider PixelPlanet to be impossible to use over Tor network. Therefore, it is not a bot issue.
Okay. It is possible to run bot using
mono
on Ubuntu 18.04.1 (WSL on Windows 10) and it's working fine but ... When I trying to run it via tor using torsocks I got error message in terminal:[ERROR] Websocket connection closed, trying to reconnect...
Log:
I configured
torrc
exactly right. Because sometimes I use tor as a systemSOCKS
proxy.I also opened the tor socks listener port for public (I have public IP address) but it wasn't have effect.
Steps to reproduce on Ubuntu 18.04:
mono-complete
https://www.mono-project.com/download/stable/#download-linmono PixelPlanetBot.exe run etc.
sudo apt-get install tor
tor
orsudo service tor start
in terminalsudo apt-get install torsocks
torsocks mono PixelPlanetBot.exe run etc.
Also I have experienced same issue in Whonix OS. The Whonix OS force all outgoing traffic through the Tor anonymity network by design.
Steps to reproduce on Whonix OS:
sudo apt install mono-complete
mono PixelPlanetBot.exe run etc.
Screenshots: