A small python script to automatically login to the captive portal in the NITK's intranet.
Selenium library for Python (install using $ pip install selenium
)
geckodriver for Firefox and added to PATH (Download link)
(support for Chrome coming soon)
$ git clone https://github.com/samvid25/Captive-Portal-Auto-Login.git
$ cd Captive-Portal-Auto-Login/
$ gedit login.py
Replace "staff" with your username and password. Save and exit.
$ gedit login
Replace /path/to/login.py with the path to login.py in your PC. Save and exit.
Make the 'login' shell script executable:
$ chmod +x login
Now whenever you want to log-on, use ./login
.
If you want to add the script to your PATH:
$ sudo cp login /usr/local/bin
And execute it from anywhere as:
$ login