socks_server | - 一个socks服务器的实现 | Proxy library
kandi X-RAY | socks_server Summary
kandi X-RAY | socks_server Summary
socks_server
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of socks_server
socks_server Key Features
socks_server Examples and Code Snippets
Community Discussions
Trending Discussions on socks_server
QUESTION
When trying to switch Tor IP address using telnet, I am running into SOCKSError::ServerFailure: general SOCKS server failure
when trying to connect to the Tor control port via telnet. However if I spawn a new process to do the telnetting, I have no problem. I dont want to spawn a new process because its ugly. I was hoping someone could help me find why I have this problem and a more rubust solution?
To reproduce:
start tor:
tor --SocksPort 9350 --ControlPort 53500 --CookieAuthentication 0 --HashedControlPassword --DataDirectory /tmp/tor_data/9350
Then run this ruby code which uses socksify
to setup a socks server, then uses the tor
gem Tor::Controller.connect
block which connects to the Tor control port via telnet to switch Tor endpoint:
ANSWER
Answered 2017-Aug-03 at 04:40I realised that the socks server was routing all TCP requests through the SOCKS server including my telnet requests. If I disable the socks server while telnetting then re-enable it again it works:
QUESTION
I'm using Rails 4.2.7 with Ruby 2.3.0. I have this code for getting a web page through a SOCKS Proxy
...ANSWER
Answered 2017-Jan-15 at 18:55Please don't say set the parameters here
res1 = Net::HTTP.SOCKSProxy(nil, nil)
Sorry, but I'll have to say that you should set those parameters. :)
I couldn't get your example to work when setting TCPSocket::socks_server
, but it worked just fine when using Net::HTTP.SOCKSProxy(socks_server, socks_port)
.
I used :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install socks_server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page