https://github.com/pacemakerx/essential-shell-scripts
This repository contains a bash script that automates the process of connecting to VIT Wi-Fi network and logging into a captive portal. It supports silent authentication with user credentials, displays a progress spinner, and hides the terminal cursor for a cleaner output.
https://github.com/pacemakerx/essential-shell-scripts
automation captive-portal shell-script wifi-login-automator
Last synced: 4 months ago
JSON representation
This repository contains a bash script that automates the process of connecting to VIT Wi-Fi network and logging into a captive portal. It supports silent authentication with user credentials, displays a progress spinner, and hides the terminal cursor for a cleaner output.
- Host: GitHub
- URL: https://github.com/pacemakerx/essential-shell-scripts
- Owner: PacemakerX
- Created: 2024-12-27T05:33:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-27T05:47:53.000Z (over 1 year ago)
- Last Synced: 2024-12-27T06:25:13.961Z (over 1 year ago)
- Topics: automation, captive-portal, shell-script, wifi-login-automator
- Language: Shell
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Essential Scripts

This repository contains a collection of essential scripts to automate various tasks and improve productivity.
## Features
- A variety of scripts to handle different tasks.
- Easy to use and customize.
- Well-documented and maintained.
## Scripts Included
1. **Wi-Fi Auto-Login Script**
- Automates the process of logging into captive portals.
- Connects to specified Wi-Fi networks and submits credentials.
- **Works for both Linux and macOS** using the same script (`vit-wifi-login.sh`).
- For **Windows**, a separate PowerShell script is available (`vit-wifi-login-windows.ps1`).
## Requirements
1. **Linux System** with necessary tools installed.
- `nmcli` for network management.
- `curl` for web requests.
2. **Windows**:
- PowerShell 5.1 or later.
## Setup Instructions
### Step 1: Clone or Download the Repository
Clone this repository or download the scripts to your local machine.
```bash
git clone https://github.com/PacemakerX/essential-shell-scripts.git
cd essential-shell-scripts
```
### Step 2: Configure the Scripts
Edit the configuration files to suit your needs. Each script has its own configuration file with detailed instructions.
#### For Linux/macOS:
1. **Make the script executable**:
```bash
chmod +x login_vit_wifi.sh
```
2. **Run the script**:
```bash
./login_vit_wifi.sh
```
#### For Windows:
1. **Open PowerShell as Administrator**:
- Press `Win + X` and select **Windows PowerShell (Admin)** or **Command Prompt (Admin)**.
2. **Allow script execution** (if not already enabled):
- Run the following command to allow scripts to be executed in PowerShell:
```powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
```
3. **Run the script**:
- Execute the script:
```powershell
.\vit-wifi-login-windows.ps1
```
The script will attempt to connect to the specified Wi-Fi network (e.g., `G-VIT`) and automatically log in to the captive portal.
**Note**: Ensure you have an active internet connection and that your Wi-Fi network is accessible.
## Contributing
Feel free to contribute to this repository by submitting pull requests, reporting issues, or suggesting new features.
## Feel free to connect with me!