Coder Social home page Coder Social logo

jessepeng / proxy-login-automator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjitech/proxy-login-automator

0.0 1.0 0.0 13 KB

create a local proxy and automatically inject user/password to real proxy server

License: MIT License

JavaScript 100.00%

proxy-login-automator's Introduction

proxy-password-automator

automatically send user/password to http proxy server so you do not need to input it manually.

  • please install node.js first.

  • Usage of parameters:

    -local_host host           listening address. Default: localhost. (* means all interfaces)
    -local_port port           listening port. Default: 8080
    -remote_host host          real proxy server address
    -remote_port port          real proxy server port. Default: 8080
    -usr user                  proxy user id
    -pwd password              proxy user password
    -as_pac_server true or false   used as pac(proxy auto configuration) server. Default: no
    

##Example1: Normal http/https proxy server

  • You have a proxy server real_proxy_ip:8080

  • You run following command to create a local trampoline at localhost:8081

    node proxy-login-automator.js  -local_port 8081 -remote_host real_proxy_ip -remote_port 8080 -usr user1 -pwd password1
    
  • Then you can set your browser's proxy ip:port = localhost:8081 manually or close Chrome then run following command

    path_of_Chrome --proxy-server=http://localhost:8081
    

##Example2: PAC(proxy auto configuration) server

  • You have a pac server serving at http://real_proxy_ip:80/real_pac_path

  • You run following command to create a trampoline at http://localhost:65000//real_pac_path

    node proxy-login-automator.js  -local_port 65000 -remote_host real_proxy_ip -remote_port 80 -usr usr1 -pwd password1 -as_pac_server true
    

    please specify large local port number because i use multiple local port sequentially like 65001, 65002, ....

  • Then you can set your browser's PAC url = http://localhost:65000/real_pac_path manually or close Chrome then run following command

    path_of_Chrome --proxy-pac-url=http://localhost:65000/real_pac_path
    

Good luck

proxy-login-automator's People

Contributors

jessepeng avatar jjqq2013 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.