mikrotik-captive-autologin
v1.1.2
Published
Automates logging into Mikrotik captive portal.
Downloads
10
Maintainers
Readme
Mikrotik Captive Autologin
This Node.js script automates logging into Mikrotik captive portal.
To add more security, Mikrotik captive portal appends some random bytes and encodes the transmitted password to MD5. This script retrieves the bytes, appends and encodes the password, then sends it to the captive portal.
Configuration
Install this package with NPM:
npm install -g mikrotik-captive-autologin
Create $HOME/.config/mikrotik-captive-autologin
directory and create config.json
file inside it,
and fill it like this:
[
{
"ssid": "<wifi name>",
"hostname": "<captive portal hostname without http://>",
"username": "<your username>",
"password": "<your password>"
}
]
You can add multiple configurations for different SSIDs.
Then run the script.
mikrotik-captive-autologin
Android Users
If you use this script on Android, you have to grant DUMP permission to the app that executes this script first.
adb shell pm grant <app package name> android.permission.DUMP
Contributors
Thank you so much to Iyxan23 for the idea and helping me out in a lot of things, since my JavaScript and Node.js knowledge is a bit rusty (pun intended).
License
This script is licensed under the MIT License, © 2022 Aldo Adirajasa Fathoni.
md5.js
is licensed under the BSD License, © 1999-2002 Paul Johnston.
wifi-name
is licensed under the MIT License, © 2015-2017 Kevin Mårtensson.