pactester(1)

πŸ“¦
version 1.5.3 Β· 3 versions
, in arch rolling, nixos 26.05, nixpkgs unstable, ubuntu stonking

πŸ’– pactester(1) β€” the manual, but make it cute πŸ’–

okay bestie, sit down, hydrate, because today we're talking about pactester, and honestly? she's iconic. this is the pactester(1) page, so like… congrats, you're exactly where you need to be. πŸŽ€


✨ NAME ✨

pactester β€” a tool to test proxy auto-config (pac) files. periodt. that's the whole girl. πŸ¦‹


🌸 SYNOPSIS 🌸

pactester <-p pacfile> <-u url> [-h host] [-c client_ip] [-e]

pactester <-p pacfile> <-f urlslist> [-c client_ip] [-e]

πŸ’… DESCRIPTION πŸ’…

so pactester is a tool to test proxy auto-config (pac) files. what does that mean bestie? it means: you hand her a URL and a pac file, and she hands you back the proxy config string for that URL. that's it. that's the vibe. ✨

and the tea? pactester uses the pacparser C library for most of its functionality. she's not doing this alone, she's got a whole library holding her up. we love a collaborative queen. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • -p pacfile β€” the PAC file you wanna test. and listen: specify - and she reads from the standard input instead. stdin girlies rise up. πŸ“
  • -u url β€” the URL you want to test the PAC file for. that's the whole point, fr fr. πŸ’–
  • -h host β€” the host part of the URL. if you don't specify it, it's determined from the URL. she'll figure it out herself, she's smart like that. 🧚
  • -c client_ip β€” the client's IP address (as returned by the function myIpAddress() in PAC files). if you don't specify it, it defaults to the IP address of the machine on which this tool is running. main character = your machine, lowkey. πŸ’œ
  • -e β€” enable Microsoft PAC extensions (dnsResolveEx, myIpAddressEx, isResolvableEx). fancy! corporate! microsoft-flavored! 🌈
  • -f urlslist β€” a file containing the list of URLs to be tested. this is good for testing a PAC file against a set of URLs. bulk testing era, no cap. πŸ”₯

⭐ EXAMPLES ⭐

wanna find out the proxy config string for the pac file "wpad.dat" and the URL "http://www.google.com"? say less:

$ pactester -p wpad.dat -u http://www.google.com

doing it for a client with IP address 10.0.12.123? yes bestie, we love a specific IP:

$ pactester -p wpad.dat -c 10.0.12.123 -u http://www.google.com

and for a pac file hosted at http://wpad/wpad.dat? pipe that curl straight into her, chef's kiss:

$ curl -s http://wpad/wpad.dat | pactester -p - -u http://google.com

πŸ’€ BUGS πŸ’€

if you have come across a bug in pactester, please submit a bug report at http://github.com/manugarg/pacparser/issues.

not me asking you to file an issue, but like… also yes, please file an issue. she can't fix what she doesn't know about, bestie. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Written by Manu Garg (http://www.manugarg.com). absolute legend behavior.


🫢 RESOURCES 🫢


and that's the whole page, bestie. this was the pactester(1) manual β€” go test some pac files, you're gonna slay. iykyk. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from