socks

Using a SOCKS proxy from C++ [closed]

混江龙づ霸主 提交于 2019-12-23 08:47:31
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . How I can use a SOCKS proxy from my C++ socket program? 回答1: Your question is a bit vague, but I'll try to answer it anyway. If found these links that might help you: A C++ socket library - Includes an sample of a Web Proxy Another C++ socket library - Includes also an example of

Maven to use SOCKS proxy for specific repo

女生的网名这么多〃 提交于 2019-12-23 02:49:10
问题 I am trying to configure maven to use a socks proxy when accessing a specific repository, but not to use it for the maven central repository. I have used export MAVEN_OPTS="-DsocksProxyHost=<proxyHost> -DsocksProxyPort=<proxyPort>" to set up the proxy initially, but then get Malformed reply from SOCKS server when it tries to download dependencies from repo.maven.apache.org/maven2. I have also tried adding the following to settings.xml, instead of the $MAVEN_OPTS : <proxies> <proxy> <active

Using socks5 proxy with Net::SMTP

天大地大妈咪最大 提交于 2019-12-22 14:38:32
问题 I would like to use Net::SMTP with dynamic socks proxy. IO::Socket::Socks is aware of socks but how it should be used with net::smtp? 回答1: I figured it out, but it includes hack that may or may not work with future version of Net::SMTP : use Net::SMTP; use Net::SOCKS; my $socks = new Net::SOCKS(socks_addr=>$shost,socks_port=>$sport, protocol_version=>5) or die $!; my $socksfd = $socks->connect(peer_addr=>$smtp_server,peer_port=>25); if(!$socksfd){ die "Connection to SOCKS failed"; } my $smtp

Why do I get “SOCKS connection failed. Connection not allowed by ruleset” for some .onion sites?

痴心易碎 提交于 2019-12-21 13:05:00
问题 I'm experimenting with Node and socks5-https-client. For some reason, certain Tor hidden service ( .onion ) sites return with a connection error. For example, connecting to DuckDuckGo ( 3g2upl4pq6kufc4m.onion ) works and returns HTML. However, connecting to The Pirate Bay ( uj3wazyk5u4hnvtk.onion ) or TORCH ( xmh57jrzrnw6insl.onion ) returns... Error: SOCKS connection failed. Connection not allowed by ruleset. What does this error mean? How can I avoid it? Here's code to reproduce it: var

how to use Socks4/5 Proxy Handlers in Netty Client (4.1)

大城市里の小女人 提交于 2019-12-21 07:45:41
问题 I need to configure socks proxy in Netty client (to request different sites via socks4 or 5 proxies). Tried a lot of proxies from free socks lists (like www.socks-proxy.net, http://sockslist.net/ etc) but with no luck: @Test public void testProxy() throws Exception { final String ua = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"; final String host = "www.main.de"; final int port = 80; Bootstrap b = new Bootstrap(); b.group(new

how to use Socks4/5 Proxy Handlers in Netty Client (4.1)

余生长醉 提交于 2019-12-21 07:44:18
问题 I need to configure socks proxy in Netty client (to request different sites via socks4 or 5 proxies). Tried a lot of proxies from free socks lists (like www.socks-proxy.net, http://sockslist.net/ etc) but with no luck: @Test public void testProxy() throws Exception { final String ua = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"; final String host = "www.main.de"; final int port = 80; Bootstrap b = new Bootstrap(); b.group(new

How to use Tor socks5 in R getURL

99封情书 提交于 2019-12-20 15:45:00
问题 I want to use Tor in getURL function in R. Tor is working (checked in firefox), socks5 at port 9050 . But when I set this in R, I get the following error html <- getURL("http://www.google.com", followlocation = T, .encoding="UTF-8", .opts = list(proxy = "127.0.0.1:9050", timeout=15)) Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) : '\n\nTor is not an HTTP Proxy\n\n\n Tor is not an HTTP Proxy \n \nIt appears you have configured your web browser to use Tor as an HTTP

How to run multiple Tor processes at once with different exit IPs?

亡梦爱人 提交于 2019-12-18 09:59:31
问题 I am brand new to Tor and I feel like multiple Tors should be considered. The multiple tors I mentioned here are not only multiple instances, but also using different proxy ports for each, like what has been done here http://www.howtoforge.com/ultimate-security-proxy-with-tor) I am trying to get started with 4 Tors. However, the tutorial applies only to Arch Linux and I am using a headless EC2 ubuntu 64bits. It is really a pain going through the differences between Arch and Ubuntu. And here I

Python's requests “Missing dependencies for SOCKS support” when using SOCKS5 from Terminal

五迷三道 提交于 2019-12-17 21:53:11
问题 I'm trying to interact with an API from my Python 2.7 shell using a package that relies on Python's requests. Thing is the remote address is blocked by my network (university library). So to speak to the API I do the following: ~$ ssh -D 8080 name@myserver.com And then, in new terminal, in local computer: ~$ export http_proxy=socks5://127.0.0.1:8080 https_proxy=socks5://127.0.0.1:8080 Then I run the program in Python console but fails: ~$ python >>> import myscript >>> id = '1213' >>> token =

How to make python Requests work via socks proxy

杀马特。学长 韩版系。学妹 提交于 2019-12-17 04:12:55
问题 I'm using the great Requests library in my Python script: import requests r = requests.get("some-site.com") print r.text I would like to use socks proxy. But Requests only supports HTTP proxy now. How can I do that? 回答1: The modern way: pip install -U requests[socks] then import requests resp = requests.get('http://go.to', proxies=dict(http='socks5://user:pass@host:port', https='socks5://user:pass@host:port')) 回答2: As of requests version 2.10.0, released on 2016-04-29, requests supports SOCKS