socks

Selenium chrome driver socks proxy configuration

一个人想着一个人 提交于 2019-12-10 00:48:21
问题 I am having troubles in setting socks proxy for chrome driver Proxy proxy = new Proxy(); proxy.setProxyType(Proxy.ProxyType.MANUAL); proxy.setAutodetect(false); proxy.setSocksProxy(ProxyHelper.PROXY_HOST + ":" + ProxyHelper.PROXY_PORT); DesiredCapabilities capabilities = DesiredCapabilities.chrome(); capabilities.setCapability(CapabilityType.PROXY, proxy); WebDriver chromeDriver = new ChromeDriver(capabilities); This configuration gives: Exception in thread "main" org.openqa.selenium

Why does SOCKS5 require to relay UDP over UDP?

半城伤御伤魂 提交于 2019-12-09 04:59:38
问题 The SOCKS5 protocol, described by RFC1928 provides support for UDP. To summarize, a client wishing to relay UDP packets through a SOCKS5 server must, at least: open a TCP connection to the SOCKS5 server; send a UDP ASSOCIATE request (cf section 4); receive from the server the address and port where it must send UDP packets to be relayed; send datagrams (UDP) to that address, encapsulated with some headers (cf section 7). Here are some relevant quotations, from section 6: A UDP association

Wrap tor socks proxy with http proxy in command line

一个人想着一个人 提交于 2019-12-09 04:41:24
I have installed tor via apt and it is listening on port number 9050 # netstat -ntlup | grep tor tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 13566/tor Since tor is a socks proxy and I want to use that an http proxy, I installed polipo via apt and configured that as below # cat /etc/polipo/config logSyslog = true logFile = /var/log/polipo/polipo.log allowedClients = 127.0.0.1, 192.168.1.0/24 # Expose your network (modify accordingly) socksParentProxy = "localhost:9050" socksProxyType = socks5 proxyAddress = "0.0.0.0" # IPv4 only Then I restarted tor and polipo services. The polipo log says it is

Wrap tor socks proxy with http proxy in command line

烈酒焚心 提交于 2019-12-08 08:15:08
问题 I have installed tor via apt and it is listening on port number 9050 # netstat -ntlup | grep tor tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 13566/tor Since tor is a socks proxy and I want to use that an http proxy, I installed polipo via apt and configured that as below # cat /etc/polipo/config logSyslog = true logFile = /var/log/polipo/polipo.log allowedClients = 127.0.0.1, 192.168.1.0/24 # Expose your network (modify accordingly) socksParentProxy = "localhost:9050" socksProxyType = socks5

Using Rselenium with firefox and socks5h

倖福魔咒の 提交于 2019-12-08 04:05:41
问题 I'm using the RSelenium package to connect to firefox, but I wish to do it via a socks proxy. In Python, this is achievable using the webdriver package and setting the preferences of the FirefoxProfile, e.g. profile=webdriver.FirefoxProfile() profile.set_preference('network.proxy.socks', x.x.x.x) profile.set_preference('network.proxy.socks_port', ****) browser=webdriver.Firefox(profile) However, I can't find how to try set the proxy to be a socks proxy, or to set the socks port in RSelenium.

Enable SOCKS 4a/5 in Internet Explorer

南楼画角 提交于 2019-12-08 02:53:37
问题 For anonymity purposes we would like to use a changing proxy server. While searching for that we stumbled over the TOR-project which works perfectly for normal browsing. However we also need the proxy for a software. Sadly this 3rd-party software uses the internet-explorer as basis so we can't use the recommended browser. Even worse seems to be that IE doesn't support SOCKS4a or SOCKS5 in its proxy settings. Or I can't seem to find them. Is there any way to enable SOCKS4a or SOCKS5 in IE? If

Problems with smtp via socks

梦想的初衷 提交于 2019-12-07 20:33:59
问题 Since I did not find solution to the problem description here, I decided to use sysread and syswrite for dialog with smtp server. Below is my test code: sub test { my ($dbh) = @_; my $server = "smtp.mail.ru"; my $ip = $server; $ip = inet_aton($ip); $ip = inet_ntoa($ip); $ip = &ip2long($ip); my $port = 465; my $pid = 0; my $is_ssl = 1; my $answer; my $user = 'my_mail@mail.ru'; my $buff = 8192; if (&choose_proxy($ip, $port, $dbh, $pid)) { if (&connect($ip, $port, $is_ssl, $pid, $server)){ data

DNS through socks proxy. How do I change windows settings for domain resolution.

你离开我真会死。 提交于 2019-12-07 12:46:13
问题 I am looking for a program to reroute windows domain resolution lookup through a socks proxy capable with many internet browsers and internet proxies. So far in Control Panel, Local Area Connection 1, TCP/IP Properties, I use the following DNS server addresses, preferred DNS Server, I put 127.0.0.1 and use the default in-built port request 53. I am reading that it is possible to forward this. I can not find a program to forward it through socks 4/5. I think this is possible because Socks

Using socks5 proxy with Net::SMTP

北城余情 提交于 2019-12-06 15:05:37
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? 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 = Net::SMTP->new_from_fd($socksfd->fileno, 'r+' ) or die $!; #HACK: there is "220 host.domain.net" line we

Maven to use SOCKS proxy for specific repo

吃可爱长大的小学妹 提交于 2019-12-06 14:56:55
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>true</active> <protocol>http</protocol> <host><proxyHost></host> <port><proxyPort></port> <nonProxyHosts