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
- Click on Use this template button.
- Give any name you want for the repository.
- Select Private. (as you don't want your username and password getting exposed to the public)
- Finally, click Create repository from template button.
Note that the following field defaults for IIUM Gombak Wifi captive portal login. Please modify accordingly.
-
Click . to open an online editor.
-
Open the
bin/dart_captive_portal_login.dart
file. -
Change the constants accordingly.
kUsername
: Your username / matric numberkPassword
: Your passwordkLoginUrl
: URL to send the login requestkLoginData
: The fields data to be sent to the URL (eg: username, command etc.)
-
From the sidebar, click the Source control icon. Enter any commit message and click Commit and Push.
-
Go back to your repository page.
Alternatively, you can clone the repository to edit the files locally.
There are two approaches to build the executable. Locally (if you have Dart SDK already installed) and remote.
- Open terminal and run
dart compile exe .\bin\dart_captive_portal_login.dart
Go to the GitHub action page.
- Find the workflow named Create executable for Windows, click the run workflow button.
- After the build finish, download the generated artifacts.
- Unzip the file and you'll get the
.exe
file.
Thank you. Happy Hacking!