Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get windows proxy username/password

I have an access to a preconfigured Windows XP 32-bit workstation. It's under firewall and to get outside it uses http proxy server. To get proxy settings I need host, port, username and password.

http: // username : password @ server : port

I'm able to find the proxy url and port (from PAC - automatic config file), but I don't know how to get username/password. Is there a way to read it somehow? At least username? I might get the admin rights.

Do you know any tool that can help?

I only found these MS docs about some methods to get proxy config connection, but I don't know how to determinate what's the provided credentials:

WinHttpGetIEProxyConfigForCurrentUser function

WINHTTP_CURRENT_USER_IE_PROXY_CONFIG structure

WinHttpGetProxyForUrl function

I've also found this lib, but it's rather for parsing PAC: http://code.google.com/p/pacparser/

like image 201
Robert Avatar asked Nov 11 '12 19:11

Robert


1 Answers

In windows you cannot get password. To get connect throw a proxy you have to use SSPI, check libcurl, you can get a connected socket throw proxy, build it with enable-sspi and openssl.

like image 72
Fernando Sanchez Avatar answered Sep 29 '22 12:09

Fernando Sanchez