socks

Java JDBC Connection using Socks

余生长醉 提交于 2020-12-06 19:22:25
问题 Using Java, I need to connect to a SQL Server database using JDBC. I need to go through our companies SOCKS proxy, so I did this and it appeared to work. Connection conn = null; Properties systemProperties = System.getProperties(); systemProperties.setProperty("socksProxyHost","socksproxy.domain.com"); systemProperties.setProperty("socksProxyPort","1081"); connectionUrl = "jdbc:sqlserver://1.2.3.4:60304;databaseName=myDatabase;sslProtocol=TLSv1.2;"; Class.forName("com.microsoft.sqlserver.jdbc

Java JDBC Connection using Socks

别来无恙 提交于 2020-12-06 19:21:49
问题 Using Java, I need to connect to a SQL Server database using JDBC. I need to go through our companies SOCKS proxy, so I did this and it appeared to work. Connection conn = null; Properties systemProperties = System.getProperties(); systemProperties.setProperty("socksProxyHost","socksproxy.domain.com"); systemProperties.setProperty("socksProxyPort","1081"); connectionUrl = "jdbc:sqlserver://1.2.3.4:60304;databaseName=myDatabase;sslProtocol=TLSv1.2;"; Class.forName("com.microsoft.sqlserver.jdbc

Unable to determine SOCKS version from socks

夙愿已清 提交于 2020-11-28 02:47:20
问题 Using proxy connection (HTTP Proxy : 10.3.100.207, Port 8080). Using python's request module's get function, getting following error: "Unable to determine SOCKS version from socks://10.3.100.207:8080/" 回答1: Try export all_proxy="socks5://10.3.100.207:8080" if you want to use socks proxy. Else export all_proxy="" for no proxy. Hope This works. :D 回答2: I resolved this problem by removing "socks:" in_all_proxy. 来源: https://stackoverflow.com/questions/39906836/unable-to-determine-socks-version

Unable to determine SOCKS version from socks

痴心易碎 提交于 2020-11-28 02:46:08
问题 Using proxy connection (HTTP Proxy : 10.3.100.207, Port 8080). Using python's request module's get function, getting following error: "Unable to determine SOCKS version from socks://10.3.100.207:8080/" 回答1: Try export all_proxy="socks5://10.3.100.207:8080" if you want to use socks proxy. Else export all_proxy="" for no proxy. Hope This works. :D 回答2: I resolved this problem by removing "socks:" in_all_proxy. 来源: https://stackoverflow.com/questions/39906836/unable-to-determine-socks-version

Unable to determine SOCKS version from socks

馋奶兔 提交于 2020-11-28 02:45:31
问题 Using proxy connection (HTTP Proxy : 10.3.100.207, Port 8080). Using python's request module's get function, getting following error: "Unable to determine SOCKS version from socks://10.3.100.207:8080/" 回答1: Try export all_proxy="socks5://10.3.100.207:8080" if you want to use socks proxy. Else export all_proxy="" for no proxy. Hope This works. :D 回答2: I resolved this problem by removing "socks:" in_all_proxy. 来源: https://stackoverflow.com/questions/39906836/unable-to-determine-socks-version

Fetching a .onion domain with requests

倾然丶 夕夏残阳落幕 提交于 2020-07-30 10:36:26
问题 I'm trying to access the following domain nzxj65x32vh2fkhk.onion using requests. I have tor running and I configured the session's object proxies correctly. import requests session = requests.session() session.proxies = {'http': 'socks5://localhost:9050', 'https': 'socks5://localhost:9050'} print(session.get('http://httpbin.org/ip').text) # prints {"origin": "67.205.146.164" } print(requests.get('http://httpbin.org/ip').text) # prints {"origin": "5.102.254.76" } However when I try to access