![]() |
|
[C#] Retrieving Cached Proxy Credentials - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Retrieving Cached Proxy Credentials (/showthread.php?tid=6128458) |
Retrieving Cached Proxy Credentials - ColdCypher - Dec 19, 2020 Hello forum. Was just trying to pull some credentials for various free proxies online and found a solution for accessing/utilizing cached credentials for personal/automated purposes. A solution in C# is listed below for any who may find it useful- string proxyUri = proxy.GetProxy(requests.RequestUri).ToString(); requests.UseDefaultCredentials = true; requests.Proxy = new WebProxy(proxyUri, false); requests.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; |