Auto-Login for Sophos Captive Portal

The following Python script automates the login process for My University’s Sophos captive portal, ensuring you stay connected to the internet by logging in every 30 minutes.

Here is the github link.

Installation Instructions

For Ubuntu:

  1. Navigate to the install-script folder.
  2. In the terminal, run the following command:
    sudo chmod +x install-for-linux.bat
    
  3. The program will be added to your PATH, and all necessary dependencies will be installed.
  4. Run the script by typing:
    login.py
    

For Windows:

  1. Ensure Python is installed on your system.
  2. Install Chrome or Chromium browser.
  3. Download Chrome drivers from this link.
  4. Install the Selenium package by running:
pip install selenium
  1. Copy the program from the source folder to where you want it and double-click to run.

Configuration Instructions

  1. Go to the source folder and edit the code to change your-username and your-password to your credentials.

Note: Make sure to periodically check for updates and adjust your setup accordingly.