Pactester icon

Pactester For Linux

2.3/5 18
LGPL    

Pactester is an utility to test proxy auto-configuration (pac) files.. #Proxy Auto-Configuration  #PAC tester  #Proxy tester  #PAC  #Proxy  #Auto-configuration  

Description

Free Download

Pactester is an utility to test Proxy Auto-Configuration (PAC) files.

PAC files are used by browsers to determine the 'right' proxy for a URL. Since the PAC file evaluation mechanism is generated inside the browser and cannot be accessed from outside, the only way to tell which proxy your browser will use for a specific URL is manual inspection of the PAC file. But manual inspection doesn't really scale very well. Pactester resolves this problem. It makes use of JavaScript interpreter and Netscape/Mozilla APIs to evaluate the PAC files and automates the whole process.

Pactester reads a PAC file, evaluates it in a JavaScript context and uses this PAC file's logic to determine the proxy for a specific URL.

Usage: ./pactester < -p pacfile > < -u url > [-h host] [-c client_ip] ./pactester < -p pacfile > < -f urlslist > [-c client_ip]

-p pacfile: PAC file to test -u url: URL to test -h host: Host part of the URL -c client_ip: client IP address (defaults to IP address of the machine on which script is running) -f urlslist: a file containing list of URLs to be tested.

./pactester -p wpad.dat -u http://www.google.com ./pactester -p wpad.dat -u http://www.google.com -c 192.168.1.105 ./pactester -p wpad.dat -f url_list

It evaluates the PAC file in a Javascript context. To do that it uses the JavaScript::SpiderMonkey perl module, which is a perl interface to Mozilla's C implementation of Javascript- Spidermonkey.

PAC files use certain JavaScript functions. These functions have been defined in pac_utils.js file included with this tool (This file was generated using another file from Mozilla source code). Also, since JavaScript has no DNS resolving capability which is required by the "dnsResolve" and "myIpAddress" functions in the PAC files, these functions have been defined in Perl and then exported to a JavaScript context.

Pactester can be used to determine the proxy for a single URL or a list of URLs.

To determine the proxy for a single URL:

./pactester -p www.pac -u http://www.example.com

For a list of URLs :

./pactester -p www.pac -f urllist

where urllist is a file containing the list of URLs separated by newline.

Pactester can be also be used to extend command line web clients like curl and perl-libwww library.

To use it with curl: Right now, curl doesn't have the functionality to evaluate PAC files to find out proxy for a given URL. However, based on pactester, you can write a wrapper perl script around curl. This perl script will first find out the proxy for the URL, the way that pactester finds out, and then it will call curl with the option '-x "proxy server as returned by pactester method"'.

Similarly, this method can be used inside perl-libwww web clients too.

System requirements

  • Perl

Pactester 1.0.8

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
pactester-1.0.8.tar.gz
  main category:
Internet
  developer:
  visit homepage

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

% discount
7-Zip
  • 7-Zip
  • ShareX
  • Context Menu Manager
  • Windows Sandbox Launcher
  • calibre
  • Zoom Client
  • 4k Video Downloader
  • IrfanView
  • Microsoft Teams
  • Bitdefender Antivirus Free
essentials


Click to load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy