PAC Generator
Switch branches/tags
Nothing to show
Clone or download
Latest commit 3cbfef2 Dec 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github add github dir Nov 7, 2016
custom build Nov 22, 2018
pac build Nov 22, 2018
.gitignore pac lib Oct 16, 2018
404.md 404 May 3, 2018
CNAME Update CNAME Jun 20, 2018
LICENSE update white list Dec 23, 2016
README.md add http proxy pac Jun 27, 2018
addBlack.sh modify shell scripts Aug 12, 2018
addBlackApp.sh modify shell scripts Aug 12, 2018
addBlackCIDR.sh modify shell scripts Aug 12, 2018
addWhite.sh modify shell scripts Aug 12, 2018
addWhiteApp.sh modify shell scripts Aug 12, 2018
addWhiteCIDR.sh modify shell scripts Aug 12, 2018
black.list update list Dec 10, 2018
black.pac build Sep 18, 2018
black_app.list more list May 15, 2018
black_cidr.list update cidr Sep 16, 2018
build.sh custom Nov 22, 2018
global.pac global May 10, 2018
http_black.pac build Sep 18, 2018
http_global.pac add http proxy pac Jun 27, 2018
http_white.pac build Oct 16, 2018
pac.go pac lib Oct 16, 2018
package-lock.json build Oct 16, 2018
package.json npm save May 5, 2018
removeBlack.sh Compatible with macos‘ Jun 22, 2018
removeBlackApp.sh Compatible with macos‘ Jun 22, 2018
removeBlackCIDR.sh modify shell scripts Aug 12, 2018
removeWhite.sh Compatible with macos‘ Jun 22, 2018
removeWhiteApp.sh Compatible with macos‘ Jun 22, 2018
removeWhiteCIDR.sh modify shell scripts Aug 12, 2018
white.list update list Dec 11, 2018
white.pac build Oct 16, 2018
white_app.list update list Aug 12, 2018
white_cidr.list update list Dec 10, 2018

README.md

A PAC Generator

Online

PAC

  • White List Mode with socks5://127.0.0.1:1080 https://blackwhite.txthinking.com/white.pac
  • Black List Mode with socks5://127.0.0.1:1080 https://blackwhite.txthinking.com/black.pac
  • White List Mode with http://127.0.0.1:8080 https://blackwhite.txthinking.com/http_white.pac
  • Black List Mode with http://127.0.0.1:8080 https://blackwhite.txthinking.com/http_black.pac

List

  • https://blackwhite.txthinking.com/white.list
  • https://blackwhite.txthinking.com/white_cidr.list
  • https://blackwhite.txthinking.com/white_app.list
  • https://blackwhite.txthinking.com/black.list
  • https://blackwhite.txthinking.com/black_cidr.list
  • https://blackwhite.txthinking.com/black_app.list

How to update list

  • $ addWhite.sh china.com
  • $ addWhiteCIDR.sh 1.0.1.0/24
  • $ addWhiteApp.sh com.tencent.mm
  • $ addBlack.sh google.com
  • $ addBlackCIDR.sh 74.125.0.0/16
  • $ addBlackApp.sh com.android.chrome
  • $ removeWhite.sh china.com
  • $ removeWhiteCIDR.sh 1.0.1.0/24
  • $ removeWhiteApp.sh com.tencent.mm
  • $ removeBlack.sh google.com
  • $ removeBlackCIDR.sh 74.125.0.0/16
  • $ removeBlackApp.sh com.android.chrome

Don't edit list directly
Prefer first-level domain

How to build PAC file

Require go, nodejs installed, and run $ go get, $ npm install

# build white.pac
$ go run pac.go \
    -m white \
    -d https://blackwhite.txthinking.com/white.list \
    -c https://blackwhite.txthinking.com/white_cidr.list \
    -p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
    > white.pac

# build more and compress
$ ./build.sh

How to run PAC server

$ go run pac.go \
    -m white \
    -d https://blackwhite.txthinking.com/white.list \
    -c https://blackwhite.txthinking.com/white_cidr.list \
    -p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
    -l ':1980'

$ curl http://127.0.0.1:1980/proxy.pac

Thanks to