socksify-ruby | TCP connection initiated by a Ruby script | Proxy library
kandi X-RAY | socksify-ruby Summary
kandi X-RAY | socksify-ruby Summary
Redirect any TCP connection initiated by a Ruby script through a SOCKS5 proxy
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Format the number of code .
socksify-ruby Key Features
socksify-ruby Examples and Code Snippets
Community Discussions
Trending Discussions on socksify-ruby
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:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install socksify-ruby
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
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