-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redsocks http-connnect basic-auth #136
Comments
Hi, I have the same problem. When using type = http-connect; no authentication is sent to the proxy. BR |
Hi, Just found the problem. Our proxy uses multiple authentications (NEGOTIATE, NTLM and BASIC). For me I fixed this with an ugly workaround (as I am not a C programmer), which maybe not appropriate for other users.
BR |
Created a pull request for enabling multiline auth requests |
Hi,
I'm using redoscks on a 2018.4 kali linux.
I need to connect to an http-proxy that require authentication.
I set redsocks.conf in this way
base {
log_debug = on;
log_info = on;
log = "stderr";
daemon = off;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 12345;
ip = 10.12.yyy.xxx;
port = 8080;
// known types: socks4, socks5, http-connect, http-relay
type = http-connect;
login = "myUser";
password = "myPass";
disclose_src = false;
}
But it seems that redsocks does NOT consider my credential.
I sniff traffic with wireshark and compare it with a proxychains connection that works fine (with same IP,Port,user and pass parameter).
wireshark session with redsocks:
CONNECT 216.58.205.100:80 HTTP/1.0
HTTP/1.0 407 authenticationrequired
Via: 1.0 10.12.yyy.xxx (McAfee Web Gateway 7.7.2.7.0.24770)
Date: Mon, 11 Feb 2019 09:25:22 GMT
Content-Type: text/html
Cache-Control: no-cache
Content-Length: 4040
Proxy-Connection: Close
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Basic realm="McAfee Web Gateway"
....
wireshark session with proxychains:
CONNECT 185.63.145.1:443 HTTP/1.0
Proxy-Authorization: Basic ZjI1MjE5Y...
HTTP/1.0 200 Connection established
What's wrong on my config setup ?
Thanks.
The text was updated successfully, but these errors were encountered: