Script for macOS to automate web authentication for the NAIST's campus wireless LAN (mm2010 or mm2020).
- Clone this repo.
git clone https://github.com/5ebec/blj
cd blj- Create a
.envwith.env.sampleas a reference.UE_USERNAMEandUE_PASSWORDare the username and password for the Mandara System, respectively.
UE_USERNAME=[your username]
UE_PASSWORD=[your password]- Prevent
Captive Network Assistantfrom starting up.
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -boolean false- Change the path in line 10 of
dev.5ebec.BackwardsLongJump.plistto your path.
<string><!-- /your/path/to/autologin_mmlan.sh --></string>- Create a symbolic link to the plist file in
~/Library/LaunchAgents.
cd ~/Library/LaunchAgents
ln -s [your/path/to/dev.5ebec.BackwardsLongJump.plist]- Load the plist file.
launchctl unload ~/Library/LaunchAgents/dev.5ebec.BackwardsLongJump.plist
launchctl load ~/Library/LaunchAgents/dev.5ebec.BackwardsLongJump.plistThe Mandala Musen LAN (called "曼陀羅無線LAN" in Japanese), NAIST's campus Wi-Fi, uses a web-based authentication system that requires you to enter your username and password every time you reconnect.
This process is very tiresome, so have you ever wanted to automate it?
The script in this repository solves this problem on macOS. I have confirmed that it works on Intel mac with macOS 10.15 to 12.1 (this is, Catalina, Big Sur, Monterey). However, I don't test it on Apple silicon mac (because I don't have one yet!).