curl https://raw.githubusercontent.com/EtherDream/jsproxy/0.1.0/i.sh | bash
Linux x64 root
80 HTTPS
: https://IP.xip.io:8443
example.com
IP
curl https://raw.githubusercontent.com/EtherDream/jsproxy/master/i.sh | bash -s example.com
: https://example.com:8443
8443 (HTTPS) 8080 (HTTP) 443 80
iptables -A PREROUTING -t nat -p tcp --dport 443 -j REDIRECT --to-ports 8443
iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
www.conf
:8443
:443
www
Web
GitHub Pages *.github.io
Fork gh-pages
www
conf.js
node_map
id
node_default
id
https://.github.io/jsproxy
# jsproxy
su - jsproxy
#
./run.sh reload
# nginx -s
./run.sh quit
#
./run.sh
#
tail server/nginx/logs/proxy.log
github.io
allowed-sites.conf
SSRF setup-ipset.sh
/home/jsproxy/server/setup-ipset.sh
root
ipset
jsporxy
IP TCPnginx
HTML/JS/CSS URL CPU Python/PHP
Service Worker JS
nginx HTTP nginx
URL URL URL API a.com google.com JS document.domain
a.com
JS URL API JS URL
API location
location
__location
this['lo' + 'cation']
URL IE
GitHub: aploium/zmirror
GitHub: jenssegers/php-proxy
/
Demo
MIT