samvid25 / Captive-Portal-Auto-Login

A small python script to automatically login to the captive portal in the NITK's intranet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Captive-Portal-Auto-Login

A small python script to automatically login to the captive portal in the NITK's intranet.

Pre-Requisites:

Selenium library for Python (install using $ pip install selenium)
geckodriver for Firefox and added to PATH (Download link) (support for Chrome coming soon)

Usage:

 $ 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

Updated March 2018

About

A small python script to automatically login to the captive portal in the NITK's intranet.


Languages

Language:Python 82.4%Language:Shell 17.6%