by jgrahamc · 4y ago · 0 comments
EDIT - I had an idea that I'm currently working through that I like but am a little stuck so taking a break before I revisit. TLDR is to use an ATTINY85 to auto-"type" the password in for folks who bring a laptop and can't scan the QR code. I wrote the Python code to generate the .ino script that would actually do the writing, but I'm having a little bit of trouble getting micronucleus to write the script to the ATTINY without an un/re plug. You can see the WIP on my digispark branch in that repo
(QR code error correction is usually enough to let you just knock out part of it and put the text right there.)
1. Have the display show a 5-digit PIN (TOTP or something that changes every minute or few)
2. Let anyone connect to your network, if they go to a browser window it will show the capture portal
3. Enter the 5-digit PIN and press "enter" and the page will show the 30-digit password so the user can copy+paste
4. User pastes password into WiFi screen and logs in
Make sure to rate-limit this endpoint to prevent random PIN attacks.