Skip to content

iqfareez/dart_captive_portal_login

Repository files navigation

Dart GitHub Actions Windows

Captive Portal Wi-Fi login using Dart

Creating a Windows executable file (.exe) to quickly log in to the wifi captive portal. See article: https://iqfareez.com/blog/hacking-wifi-captive-portal-2

Usage

Using template

  1. Click on Use this template button.
  2. Give any name you want for the repository.
  3. Select Private. (as you don't want your username and password getting exposed to the public)
  4. Finally, click Create repository from template button.

Modify fields

Note that the following field defaults for IIUM Gombak Wifi captive portal login. Please modify accordingly.

  1. Click . to open an online editor.

  2. Open the bin/dart_captive_portal_login.dart file.

  3. Change the constants accordingly.

    • kUsername: Your username / matric number
    • kPassword: Your password
    • kLoginUrl: URL to send the login request
    • kLoginData: The fields data to be sent to the URL (eg: username, command etc.)
  4. From the sidebar, click the Source control icon. Enter any commit message and click Commit and Push.

  5. Go back to your repository page.

Alternatively, you can clone the repository to edit the files locally.

Generate executable

There are two approaches to build the executable. Locally (if you have Dart SDK already installed) and remote.

Local build

  1. Open terminal and run dart compile exe .\bin\dart_captive_portal_login.dart

Remote build (easier)

Go to the GitHub action page.

  1. Find the workflow named Create executable for Windows, click the run workflow button.
  2. After the build finish, download the generated artifacts. Download artifacts from GitHub actions
  3. Unzip the file and you'll get the .exe file.

Thank you. Happy Hacking!

About

A template to create an exe file to quickly login to the wifi captive portal

Topics

Resources

Stars

Watchers

Forks

Languages