Skip to content

saddexed/llogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LLogin - LPU Wireless Auto Login

A PowerShell-based automatic login tool for LPU (Lovely Professional University) wireless networks. For exe versions/Mac and Linux releases, hop over to

Installation

Quick Install

# Default
.\install.ps1
# Install with desktop shortcut
.\install.ps1 -CreateShortcut
# Install files only (No task, for manual updates and such)
.\install.ps1 -InstallOnly

Configuration

Setting Up Credentials

You can store your credentials securely by creating a credentials file manually:

# Create/edit the credentials file manually
notepad "$env:LOCALAPPDATA\Programs\llogin\credentials.json"

The credentials are stored in JSON format at: %LOCALAPPDATA%\Programs\llogin\credentials.json Example credentials.json:

{
    "defaultUsername": "your.username",
    "defaultPassword": "your.password",
}

Usage

Basic Login Commands

# Login with stored default credentials
llogin
# Login with specified credentials (temporarily)
llogin username password

Credential Management Commands

# Clear stored credentials
llogin -clear

Logout Commands

llogin -l

Scheduled Task Management

# Enable automatic login (requires admin privileges)
llogin -start
# Disable automatic login (requires admin privileges)
llogin -stop

Background Monitoring Mode

Run the script in continuous monitoring mode to automatically detect connection loss and attempt re-login:

# Start monitoring with stored credentials
llogin -monitor

# Start monitoring with specific credentials
llogin -monitor username password

How it works:

  • Checks internet connection to 1.1.1.1 (Cloudflare DNS) every second
  • If connection fails for 3 consecutive attempts, automatically triggers login
  • Attempts up to 10 login retries until connection is restored
  • Logs all activity to check-connection.txt in the installation directory
  • Runs indefinitely until stopped with Ctrl+C

Use Cases:

  • Keep connection alive during long work sessions
  • Auto-recover from network drops
  • Monitor connection reliability

Command Reference

Command Description Admin Required
llogin Login with default/stored credentials No
llogin -h Show help information No
llogin username password Login with specified credentials No
llogin -clear Remove stored credentials No
llogin -l Logout No
llogin -start Enable automatic login task Yes
llogin -stop Disable automatic login task Yes
llogin -monitor Run background connection monitor No

| llogin -v | Show version information | No |

Credential Storage Priority

The script checks for credentials in this order:

  1. Command line parameters (llogin username password)
  2. json credentials file (%LOCALAPPDATA%\Programs\llogin\credentials.json)

To-Do

  • Multi User Cred management

  • Add logout command and alias

  • Powershell 5.1 logo ut compatibility fix Dropping 5.1 support entirely, only core versions

  • Automatic Privilege Escalation for Task Scheduler changes

  • Linux/Mac port (proably never, check out Ba3a's Version)

License

This project is provided as-is for educational and personal use at LPU.

Note: This tool is specifically designed for LPU wireless networks and may not work on other captive portal systems.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Contributors