pactester - a tool to test proxy auto-config (PAC) files

Hackers and Sysadmins :-)

Google has recently released "pactester", a tool to test proxy auto-configuration (PAC) files. Use of PAC files is becoming more and more common because of automation and ease of administration provided by them. Before pactester there was no "real" way to test the PAC files. We could tell whether this site will be accessible using this PAC file or not. But, we could not tell which proxy server will be used for a specific URL unless we examine the traffic using some network sniffer or check the access logs at the proxy server. Both of these ways were not very accessible and were time consuming. Of course, another way to test would be the manual inspection of PAC files, but again it's error prone and quite impractical for large and complex PAC files.

Pactester resolves all these issues by simulating the browser behavior. It evaluates the PAC file in a JavaScript context and returns the proxy server for a specific URL using the PAC file's logic. It's written in perl and uses the same JavaScript code to evaluate the PAC file functions as is used by Mozilla browsers. Documentation, in the form of README and INSTALL files, is included in the source code tarball. Some relevant URLs:

Project home page:
Project download: http://
Quick Documentation:
Mailing list and discussion group:

Tested to works on: Linux, Mac OS X, Windows-Cygwin

Cheers to open source!! :-)
Manu Garg/"Journey is the destination of life"

Update: Now there is an implementation of pactester in C using pacparser library. Compiled binary of pactester for Windows can be downloaded from pactester download page.


  1. How r u doing? no posts for a long time. whats it,that keeping you busy now-a-days.

    Best Regards


Post a Comment

Popular posts from this blog

Comfort and Bliss, In the lap of Himalayas

Defeating Firewalls: Sneaking Into Office Computers From Home

Tail'ing in Python