/alup

Automatic login for University of Pisa Captive Portal

Primary LanguagePythonMIT LicenseMIT

Alup (Automatic Login for University of Pisa)

Alup (Automatic Login for the University of Pisa) is a Python script provides to keep you logged on University Of Pisa captive portal (Area SerRA). After configuration of Alup with your credentials, the login session will be managed automatically in order to avoid logout due to timeout or connection issues.
Alup works for Linux, Mac and Windows (excepts for the autorun part).

Why Alup?

The first reason is my Raspberry Pi. Alup helps me to log in through ssh by managing the captive portal connection.
I've been using Alup also for my laptop so I decided to improve it in order to help someone else.
I'm lazy, that's all!

Extra modules

Alup works with these extra python modules:

  • bs4
  • requests

Install them simply by using pip.
Note: be sure you install them for python3

Installation

Download:

$ git clone https://github.com/pigna90/alup.git
$ cd alup

Install:

$ python3 installer.py install

If the installation directory isn't specified then Alup will be installed in your home directory.
Copy the script manually as a super user:

# cp alup /usr/local/bin/

Note: .alup/ folder will be created as an hiden directory

Usage

Run:

$ alup

Create a new profile and run:

$ alup --new-profile

Run from a custom directory:

$ alup -c /path/to/.alup

Note: for more commands please use -h (--help) command.

Auto-run (systemd)

Installation script creates a systemd configuration file as well. Copy it in your systemd services directory as super user:

# cp alup.service /etc/systemd/system/

Start and test the service:

$ systemctl start alup.service

Start automaticaly:

$ systemctl enable alup.service

Issues and bugs

For any bugs or issues use the Issues section or create a new pull request. Please attach the logs located under .alup/log/.