socks

Enable SOCKS 4a/5 in Internet Explorer

六眼飞鱼酱① 提交于 2019-12-06 13:47:43
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 not what would be the best alternative? Keep in mind that we want that the IP is changed on a daily

Problems with smtp via socks

 ̄綄美尐妖づ 提交于 2019-12-06 09:07:44
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_read($buff); my $ehlo = "ehlo mydomain.com\n"; data_send($ehlo); data_read($buff); my $auth = "auth

Python ssh client over socks (proxy)

坚强是说给别人听的谎言 提交于 2019-12-06 08:11:37
问题 So, I need to connect to SSH server through proxy socks. I read paramiko and twisted.conch docs, but didn`t found proxy socks support there. 回答1: This socket-wrapper allows you to use static ssh-tunnels. I found a common solution for my problem: Use paramiko SSHClient class Extend SSHClient with your own class Re-implement the connect() method: Instead of using a standard socket object we pass to it a fixed proxied socket from the python package sockipy 回答2: Paraproxy (a Paramiko addon for

SOCKS5 Proxy using SSLSocket

故事扮演 提交于 2019-12-06 06:22:14
问题 I have a client/server application that remotely connects to a server via Java's SSLSocket. I'm trying to implement an optional mode that enables connections via an authenticated SOCKS v5 proxy. I tried using the relevant tutorial but it doesn't mention anything about SSL specifically. I've tried setting the system-wide properties ("socksProxyHost" and "socksProxyPort") but it doesn't seem to do anything. My next approach was to use factory method in SSLSocketFactory: String proxyHost =

Send and receive via SOCKS5 c++

谁说胖子不能爱 提交于 2019-12-06 04:56:16
问题 I am playing with SOCKS5 proxy ( TOR ). I am able to estabilish connection but now I dont know how to send and receive data to/from destination. Thanks for help. Code: #include <stdio.h> #include <WinSock2.h> #include <stdlib.h> #pragma comment(lib,"ws2_32.lib") #define PUT_BYTE(ptr,data) (*(unsigned char*)ptr = data) int main() { WORD wVersionRequested = MAKEWORD(2,0); WSADATA wsaData; if(WSAStartup(wVersionRequested,&wsaData) != 0 ) { return 1; } int fd = socket( AF_INET, SOCK_STREAM, 0);

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

↘锁芯ラ 提交于 2019-12-05 21:52:59
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 supports UDP. Has anyone come up with the answer to a solution about a UDP-to-socks forwarding program

monkeysocks开发日志--动机

こ雲淡風輕ζ 提交于 2019-12-05 08:05:44
monkeysocks的目标是为开发以及测试提供一个稳定的环境。 前几天听说公司的测试团队在鼓捣数据固化的东西,说白了就是在测试启动时构建一个临时性的数据库,操作完之后再销毁,这样的好处是不造成测试副作用,同时屏蔽环境的差异。 但是目前公司内部SOA用的太多了,仅仅靠数据库固化明显不现实,公司的架构团队做了一个将所有remote service放到本地启动的东西,但是这样子启动开销有点难以接受。有没有更可行的方案? 之前也有人做过一个单测的东西,可以将所有RPC调用的结果序列化成文本文件,下次调用时再序列化出来,这样其实就屏蔽了远程调用。但是Java语言层面的机制导致要把千奇八怪的对象序列化下来,本来就是不可完成的任务(有些对象本身就不是POJO,还有在getter、setter写逻辑的)。 于是我有一个大胆的设想:其实Java的外部依赖无非是网络IO,就是TCP/UDP包嘛,那我能不能做一个工具,录制一个稳定环境的网络流量,然后固化下来,最终在调用时进行重放,岂不是一劳永逸? 但是TCP/UDP毕竟是系统底层的东西,而且我想对每个Java进程单独做重放,所以只能从Java内部机制入手了。 有两个方法: 用cglib改写所有网络IO相关的接口,改用固化调用。 设置Java全局socks代理,并启动socks server,在socks server里做代理。 显然第二种方法更简单

How to scrape a website with the socksify gem (proxy)

ぃ、小莉子 提交于 2019-12-05 06:45:52
问题 I am reading through the documentation of the socksify gem on Rubyforge. I have installed the gem successfully, and I have run this documented code with success to test that my local implementation can replicate it: require 'socksify/http' uri = URI.parse('http://rubyforge.org/') Net::HTTP.SOCKSProxy('127.0.0.1', 9050).start(uri.host, uri.port) do |http| http.get(uri.path) end # => #<Net::HTTPOK 200 OK readbody=true> But how do I e.g. scrape 'http://google.com/' , and get the html content? I

Proxying UDP over SOCKS5 proxy in Python

只谈情不闲聊 提交于 2019-12-05 05:43:05
Is it possible to send UDP datagrams over SOCKS5 proxy in Python using any SOCKS client lib? SocksiPy does not seem to work or maybe I am just using it wrong. The following code does not work, it tries to connect to the destination directly: s = socks.socksocket ( socket.AF_INET, socket.SOCK_DGRAM ) s.setproxy(socks.PROXY_TYPE_SOCKS5,"socks.proxy.lan") s.sendto ( payload, ( ip, port ) ) If I change SOCK_DGRAM to SOCK_STREAM the code does not work either, it does not try to connect anywhere then. Have you tried to use connect() and send() instead of sendto()? Judging from the SocksiPy source

Dynamically change proxy in HttpClient without hard cpu usage

孤者浪人 提交于 2019-12-05 05:15:12
问题 I need to create a multithreaded application which makes requests (Post, get etc) For this purpose i chose Httpclient . By default it does not support Socks proxies. So I find Sockshandler (https://github.com/extremecodetv/SocksSharp) can be used instead of basic HttpClientHandler. It allows me to use socks. But I have a problem. All my requests should be send through different proxies which I have parsed from the internet. But httpclient handler doesn't support changing proxies dynamically.