A PowerShell-based automatic login tool for LPU (Lovely Professional University) wireless networks. For exe versions/Mac and Linux releases, hop over to
# Default
.\install.ps1
# Install with desktop shortcut
.\install.ps1 -CreateShortcut
# Install files only (No task, for manual updates and such)
.\install.ps1 -InstallOnlyYou 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",
}# Login with stored default credentials
llogin
# Login with specified credentials (temporarily)
llogin username password# Clear stored credentials
llogin -clearllogin -l# Enable automatic login (requires admin privileges)
llogin -start
# Disable automatic login (requires admin privileges)
llogin -stopRun 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 passwordHow 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.txtin 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 | 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 |
The script checks for credentials in this order:
- Command line parameters (
llogin username password) - json credentials file (
%LOCALAPPDATA%\Programs\llogin\credentials.json)
-
Multi User Cred management
-
Add logout
command andalias -
Powershell 5.1 logo ut compatibility fixDropping 5.1 support entirely, only core versions -
Automatic Privilege Escalation for Task Scheduler changes -
Linux/Mac port (proably never, check out Ba3a's Version)
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.