Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access a proxy without username and password?

I want to automate a time keeping web client, using nokogiri and mechanize. I need to connect via a proxy server, however the catch is, I don't know the username and password of said proxy server. I would like to grab the cached credentials for this proxy that are stored on the computer..

For example, in c# you can use:

string proxyUri = proxy.GetProxy(requests.RequestUri).ToString();
requests.UseDefaultCredentials = true;
requests.Proxy = new WebProxy(proxyUri, false);
requests.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

This will grab the credentials that are already logged and use them to access the proxy, does Ruby have anything of the sort? I know that you can use proxies in ruby, and it's fairly simple, however I am unable to get any of the information for the proxy (username password). This proxy is not allowing me to connect to the web. Is there a way I can get the cached credentials (username, password) and access the proxy? Or, if not possible is there a way around it?

like image 482
13aal Avatar asked May 31 '16 22:05

13aal


People also ask

How do I find my proxy server username and password?

At the bottom, click on the Advanced button. Click on the Proxies tab and you'll see a bunch of different protocols you can configure. For example, if you click on Web Proxy (HTTP), you'll be able to enter the proxy server IP address, port number, username and password.

Can a proxy see my passwords?

It really depends on how the proxy is set up, but basically in a "run of the mill" proxy it can see all plain text content (i. e. not encrypted by SSL/TLS) in both directions. So yes, they could easily pick up all ID's and passwords.

How do I find my proxy username and password Android?

Right under where you put your proxy settings (Settings - > Wifi - > Long click your network -> Manage settings -> Advanced -> Proxy -> manual) you can put your username and password. This also imply you can use authenticated proxy in . pac file while using chrome. Which version of Android was this screenshot taken?


1 Answers

You might try and retrieve them directly from the registry. The settings ought to be in

HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings
    ProxyEnable      REG_DWORD
    ProxyServer      REG_SZ
    ProxyUser        REG_SZ
    ProxyPass        REG_SZ

but depending on how your utility is run, it might have troubles accessing the appropriate hive.

Or, maybe... where one utility isn't enough... use two.

like image 161
LSerni Avatar answered Oct 10 '22 20:10

LSerni