Searched full:socks (Results 1 – 25 of 926) sorted by relevance
12345678910>>...38
38 * SOCKS (V4 & V5) TCP socket implementation (RFC 1928).129 throw new SocketException("Malformed reply from SOCKS server"); in readSocksReply()163 … server, addr, serverPort, "SOCKS5", "SOCKS authentication", null); in authenticate()212 // GSSName name = manager.createName("SERVICE:socks@"+server, in authenticate()265 throw new SocketException("SOCKS V4 requires IPv4 only addresses"); in connectV4()283 throw new SocketException("Reply from SOCKS server has bad length: " + n); in connectV4()285 throw new SocketException("Reply from SOCKS server has bad version"); in connectV4()293 ex = new SocketException("SOCKS request rejected"); in connectV4()296 ex = new SocketException("SOCKS server couldn't reach destination"); in connectV4()299 ex = new SocketException("SOCKS authentication failed"); in connectV4()[all …]
35 int Curl_eventfd(curl_socket_t socks[2], bool nonblocking) in Curl_eventfd()39 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_eventfd()42 socks[0] = socks[1] = efd; in Curl_eventfd()50 int Curl_pipe(curl_socket_t socks[2], bool nonblocking) in Curl_pipe()52 if(pipe(socks)) in Curl_pipe()55 if(fcntl(socks[0], F_SETFD, FD_CLOEXEC) || in Curl_pipe()56 fcntl(socks[1], F_SETFD, FD_CLOEXEC) ) { in Curl_pipe()57 close(socks[0]); in Curl_pipe()58 close(socks[1]); in Curl_pipe()59 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_pipe()[all …]
30 lws_set_socks(struct lws_vhost *vhost, const char *socks) in lws_set_socks() argument36 if (!socks) in lws_set_socks()42 p_at = strrchr(socks, '@'); in lws_set_socks()44 if (lws_ptr_diff_size_t(p_at, socks) > (sizeof(user) + in lws_set_socks()50 p_colon = strchr(socks, ':'); in lws_set_socks()52 if (lws_ptr_diff_size_t(p_colon, socks) > in lws_set_socks()63 lws_strncpy(vhost->socks_user, socks, in lws_set_socks()64 lws_ptr_diff_size_t(p_colon, socks) + 1); in lws_set_socks()69 lwsl_vhost_info(vhost, " Socks auth, user: %s, password: %s", in lws_set_socks()73 socks = p_at + 1; in lws_set_socks()[all …]
3 This module contains provisional support for SOCKS proxies from within6 module with the ``socks`` extra.8 The SOCKS implementation supports the full range of urllib3 features. It also9 supports the following SOCKS features:15 - Usernames and passwords for the SOCKS proxy26 will be sent as the ``userid`` section of the SOCKS request:44 import socks52 "SOCKS support in urllib3 requires the installation of optional "54 "https://urllib3.readthedocs.io/en/1.26.x/contrib.html#socks-proxies"77 A plain-text HTTP connection that connects via a SOCKS proxy.[all …]
273 // Specify an HTTP proxy for "ftp://" and a SOCKS proxy for "https://" in TEST()281 "SOCKS foopy:1080", in TEST()353 "https=socks://foo", in TEST()359 "SOCKS socks_proxy:1080", in TEST()363 // Only SOCKS proxy present, others being blank. in TEST()365 "socks=foopy", in TEST()372 "SOCKS foopy:1080", in TEST()375 // SOCKS proxy present along with other proxies too in TEST()377 "http=httpproxy ; https=httpsproxy ; ftp=ftpproxy ; socks=foopy ", in TEST()384 "SOCKS foopy:1080", in TEST()[all …]
657 "", // socks in TEST_F()674 TEST_DESC("socks"), in TEST_F()679 "", "", "", "socks.com", // hosts in TEST_F()690 "socks5://socks.com:99", // single proxy in TEST_F()695 TEST_DESC("Per-scheme proxy rules with fallback to SOCKS"), in TEST_F()703 "foobar.net", // socks in TEST_F()717 "socks5://foobar.net:99", // socks in TEST_F()723 "Per-scheme proxy rules (just HTTP) with fallback to SOCKS"), in TEST_F()731 "foobar.net", // socks in TEST_F()745 "socks5://foobar.net:99", // socks in TEST_F()[all …]
123 // socks=XXX is inconsistent with the other formats, since "socks" in ParseFromString()125 // it to the SOCKS proxy server XXX". in ParseFromString()126 if (url_scheme == "socks") { in ParseFromString()129 // Note that here 'socks' is understood to be SOCKS4, even though in ParseFromString()130 // 'socks' maps to SOCKS5 in ProxyServer::GetSchemeFromURIInternal. in ParseFromString()193 // "fallback_proxies" will be empty, or a a single SOCKS in GetProxyListForWebSocketScheme()198 // including non-SOCKS. In this case "fallback_proxies" is in GetProxyListForWebSocketScheme()
2 //go:generate bundle -o socks_bundle.go -prefix socks golang.org/x/net/internal/socks4 // Package socks provides a SOCKS version 5 client implementation.6 // SOCKS protocol version 5 is defined in RFC 1928.7 // Username/Password authentication for SOCKS version 5 is defined in176 // A Command represents a SOCKS command.182 return "socks connect"184 return "socks bind"186 return "socks " + strconv.Itoa(int(cmd))190 // An AuthMethod represents a SOCKS authentication method.193 // A Reply represents a SOCKS command reply code.[all …]
37 // test SOCKS type proxy in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()38 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()39 assertEquals(Proxy.Type.SOCKS, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()60 // test SOCKS type proxy in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress()62 proxy = new Proxy(Proxy.Type.SOCKS, null); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress()117 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_toString()134 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_toString()151 // SOCKS type in test_equalsLjava_lang_Object_Equals()152 Proxy proxy3 = new Proxy(Proxy.Type.SOCKS, address1); in test_equalsLjava_lang_Object_Equals()153 Proxy proxy4 = new Proxy(Proxy.Type.SOCKS, address2); in test_equalsLjava_lang_Object_Equals()[all …]
125 // set socks proxy in test_selectLjava_net_URI_SelectExact()139 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()166 // set socks proxy in test_selectLjava_net_URI_SelectExact_NullHost()183 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()199 // set socks proxy in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()220 // set socks proxy in test_selectLjava_net_URI_SelectExact_DefaultPort()233 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()253 // set socks proxy in test_selectLjava_net_URI_SelectExact_InvalidPort()267 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_InvalidPort()316 // set socks proxy in test_selectLjava_net_URI_SelectLikeHTTP()[all …]
26 * @summary Java doesn't correctly handle the SOCKS protocol when used over IPv6.30 package test.java.net.Socks;68 private SocksServer socks; field in SocksIPv6Test97 socks = new SocksServer(0, false); in setUp()98 socks.addUser("user", "pass"); in setUp()99 socks.start(); in setUp()145 Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("::1", in testSocksOverIPv6()146 socks.getPort())); in testSocksOverIPv6()178 Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(ipv6Hostname, in testSocksOverIPv6Hostname()179 socks.getPort())); in testSocksOverIPv6Hostname()[all …]
23 // Every SOCKS server requests a user-id from the client. It is optional33 // Server Response codes for SOCKS.156 // if the SOCKS handshake is complete.195 // SOCKS handshake is complete.230 DVLOG(1) << "Finished setting up SOCKS handshake"; in DoCallback()349 // Writes the SOCKS handshake data to the underlying socket connection.427 DVLOG(1) << "Unknown response from SOCKS server."; in DoHandshakeReadComplete()436 DVLOG(1) << "SOCKS request rejected or failed"; in DoHandshakeReadComplete()439 DVLOG(1) << "SOCKS request failed because client is not running " in DoHandshakeReadComplete()443 DVLOG(1) << "SOCKS request failed because client's identd could " in DoHandshakeReadComplete()[all …]
28 // This StreamSocket is used to setup a SOCKSv5 handshake with a socks proxy.33 // communicate to via the SOCKS layer.35 // Although SOCKS 5 supports 3 different modes of addressing, we will50 // Does the SOCKS handshake and completes the protocol.118 // Writes the SOCKS handshake buffer into |handshake|133 // SOCKS handshake data. The length contains the expected size to141 // This becomes true when the SOCKS handshake has completed and the145 // These contain the bytes sent / received by the SOCKS handshake.
31 // The SOCKS client socket implementation35 // communicate to via the socks layer. For testing the referrer is optional.53 // Does the SOCKS handshake and completes the protocol.125 // SOCKS handshake data. The length contains the expected size to133 // This becomes true when the SOCKS handshake has completed and the137 // These contain the bytes sent / received by the SOCKS handshake.144 // Used to resolve the hostname to which the SOCKS proxy will connect.
28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); in test_address()32 new Proxy(Proxy.Type.SOCKS, null); in test_address()46 new Proxy(Proxy.Type.SOCKS, address1); in test_hashCode()47 Proxy proxy4 = new Proxy(Proxy.Type.SOCKS, address1); in test_hashCode()54 Proxy proxy5 = new Proxy(Proxy.Type.SOCKS, address1); in test_hashCode()55 Proxy proxy6 = new Proxy(Proxy.Type.SOCKS, address2); in test_hashCode()64 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_type()65 assertEquals(Proxy.Type.SOCKS, proxy.type()); in test_type()
150 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()152 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()154 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()156 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()164 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()166 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()168 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()170 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()
30 std::cout << " sync_client localhost socks chris\n"; in main()36 // Get a list of endpoints corresponding to the SOCKS 4 server name. in main()41 // SOCKS 4 server. in main()45 // Get an endpoint for the Boost website. This will be passed to the SOCKS in main()46 // 4 server. Explicitly specify IPv4 since SOCKS 4 does not support IPv6. in main()50 // Send the request to the SOCKS 4 server. in main()55 // Receive a response from the SOCKS 4 server. in main()59 // Check whether we successfully negotiated with the SOCKS 4 server. in main()
... use/ io/netty/handler/codec/socks/ io/netty/handler/codec/socks ...
251 * The default implementation just picks the first non-SOCKS proxy252 * from the list. If there are only SOCKS proxies,289 case SOCKS: in chooseProxy()290 // SOCKS hosts are not handled on the route level. in chooseProxy()291 // The socket may make use of the SOCKS host though. in chooseProxy()297 //@@@ log as warning or info that only a socks proxy is available? in chooseProxy()298 // result can only be null if all proxies are socks proxies in chooseProxy()299 // socks proxies are not handled on the route planning level in chooseProxy()