Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've seen an app for this in FDroid.


What's the name of it?


https://f-droid.org/en/packages/com.juliansparber.captivepor...

"It works by simply replacing the action URL from the login form on the web page to a local HTTP server which redirects the request to the original destination. The local HTTP server saves the request, so the app can reproduce the same call next time you connect to the same WiFi network."

Uhh... Time to move to iOS, I think.


Why would you move to iOS over that?


Without a rooted phone, there's no better way to "fix" Android's captive portal code, or to automate it.


How would root or iOS help you? The problem is that each captive portal is different, so you need the user to "teach" it once. Seems a reasonable approach to me.


Root would allow packet capture without the VPN framework that may not work before there's a network "up" (I should try tShark).

I guess I'm just a bit exasperated about how the lesser-used parts of Android have far less attention to detail (there's no reason this couldn't be a built in feature)


Why would you do this with packet capture? You'd have to install a root cert and MITM connections, it'd be much more messy and dangerous.


I haven't seen a portal with SSL (correctly) configured - are there any that don't work by capturing DNS/HTTP and redirecting to a login page?

You're already essentially doing MITM by redirecting form actions.


I haven't seen a portal with SSL (correctly) configured - are there any that don't work by capturing DNS/HTTP and redirecting to a login page?

The ones I've used recently all capture DNS/HTTP, but use it to redirect to an HTTPS page with the actual form - which you'd have to MITM.

You're already essentially doing MITM by redirecting form actions.

Yes, but inside a single webview, not system-wide!


How do you automate captive portals on iOS then?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: