My collection of proxy utils published to github. The C# .NET 4.0 source code and latest versions of these utilities is published on GitHub here:
To just download the pre-compiled .NET 4.0 executables (may not be latest versions):
Warning: These are quick hacked together projects and the source code is a bit of a mess and they are not fully tested. Ideally I would have fully cleaned up/tested before publishing, but considering my average work day is around 15 hrs…they were never going to get published if I waited for that… You are welcome to test & fix to your hearts content :)
In the past few months I’ve come across some really crazy use of Pac Files (i.e. containing the detailed network design for a large international company) In my spare time I put together a simple utility to debug pac files.
Open PacDbg and it will load your current PacFile and you can test URLs against it, and find the line of Pac file responsible for result. Also find parsing/runtime errors:
Note: It currently does not support the Windows 7 and later IPv6 PAC extensions, they need to be added.
Oops that didn’t work, and we get an error message giving us a clue. Fixed up:
Custom Proxy Browser
Uses Windows APIs to set proxy per-process, allowing this browser to use a WebBrowser controlling, and over-riding system proxy settings.
The proxy is set to either nothing or a specific proxy server via the .config file – set proxy to proxyname:port if you wanted a proxy setting. Currently it is set to use no proxy. You can further configure it via the .config file.
Set Proxy Command Line Tool
A command line tool to set the proxy server, also demonstrates setting proxy settings in C#
Command line options:
/proxy:[enable|disable] – Enable/Disable Proxy
/address:proxy:port – Specify Proxy Address
/pac:url – Specify PAC File URL
/autodetect:[enable|disable] – enable/disable auto detect
/connection:[connection name] – specify a dial up connection name to set proxy for
/bypasslocal – Bypass proxy for local connections.