TAR UMT WiFi Auto Connect Program is a Node.js application that automatically logs you into the TAR UMT WiFi network using your provided credentials. If no account data is found, the program will prompt you to enter your username and password and create an account.json file. It then checks your network connection via DNS and, if connected to the TAR UMT network, automatically sends a login request.
-
Automatic Credential Setup:
Prompts the user to input credentials ifaccount.jsonis missing and saves them for future use. -
Network Verification:
Uses DNS lookup to verify whether you are connected to TAR UMT WiFi. -
Automated Login:
Sends a POST request with your credentials to log in to the network automatically. -
Colorful Console Output:
Uses Chalk to display colored messages for a better user experience. -
Executable Build:
Easily build standalone executables for Windows, macOS, and Linux using pkg.
- Node.js (v14 or higher recommended)
- npm
- (For building executables) pkg installed globally:
npm install -g pkg
-
Clone the Repository:
git clone https://github.com/samleong123/tarumt-wifi-autoconnect.git cd tarumt-wifi-autoconnect -
Install Dependencies:
npm install
-
Run the Application:
npm run connect
- On the first run, if
account.jsonis not found, you will be prompted to enter your TAR UMT WiFi username and password. - The application checks if you are connected to TAR UMT WiFi (by verifying the DNS resolution) and then attempts to log you in.
- On the first run, if
-
Console Output:
- Successful operations and errors are displayed in color for clear feedback.
This project can be packaged into a standalone executable using pkg.
-
Ensure pkg is installed:
npm install -g pkg
-
Build the Executable:
npm run build
This command builds executables for Windows, macOS, and Linux (using Node.js v18) and places them in the
bindirectory.
This project is licensed under the ISC License.
Created by Sam Sam