News for hackers. Stuff that matters.
Re:Windows 7 Network Awareness: How Windows knows it has an ... by jerrya on Monday May 16, 2011 @06:53PM (#2554519)
Yes, I have wanted to build something like that for Android, mainly to keep my phone from getting confused when it's connected to someone's wifi that demands some check box be checked off for service.

It would periodically awaken, see if the wifi is connected, if it is is there connectivity, if there is, go back to sleep, if there is not, turn the wifi off.

I've also wanted to build for Android the same piece of code, but if for 2 or 5 urls it gets back the same page with a checkbox, it checks off the box and sends it back off.

But I am curious, do all those wifi dns terms and agreements hijacking pages break any sort of RFC?

And is there any solution in ip6?

Or is there a real fix possible in ip4?

Re:Windows 7 Network Awareness: How Windows knows it has an ... by ephemient on Monday May 16, 2011 @07:10PM (#2554574)
I'm not sure if you can access its state programmatically, but Android already does detection: the WiFi status icon is green if the system can make a connection to Google's servers, and grey otherwise.

IPv[46] have nothing to do with it. "Captive portal" pages are meant to prevent you from getting to the larger Internet, until you do whatever magic is required to dismiss them.

Re:Windows 7 Network Awareness: How Windows knows it has an ... by jerrya on Monday May 16, 2011 @07:21PM (#2554611)
"the WiFi status icon is green if the system can make a connection to Google's servers, and grey otherwise."

That's interesting. How does it detect it's at Google's servers?

I've often had occasions on my non-rooted, gingerbread, nexus one, where the phone believes it is on the net, on wifi, and shunts all activity to wifi, and yet, it's really stuck on one of those captive portal pages.

It even happens if I am just driving down the road.

I had thought that perhaps a small bit of technology would fix that, perhaps by turning the wifi off, or by automatically checking in on starbuck's router, but I am beginning to see I may just have a sick-making sense of entitlement.

Without being terribly cognizant of the RFCs I am surprised these portal captures are within spec.

Re:Windows 7 Network Awareness: How Windows knows it has an ... by Duff on Monday May 16, 2011 @09:10PM (#2554883)
I'm not sure about your case, but the free wifi provider my city lets you visit Google without clicking through their portal.
Re:Windows 7 Network Awareness: How Windows knows it has an ... by telcodud on Monday May 16, 2011 @11:31PM (#2555154)
Check out this open source application sbautologin (link: http://code.google.com/p/sbautologin/) that automatically logs into Starbucks (AT&T really) WiFi.
Re:Windows 7 Network Awareness: How Windows knows it has an ... by jerrya on Tuesday May 17, 2011 @02:59AM (#2555574)
Thank you!
Re:Windows 7 Network Awareness: How Windows knows it has an ... by dsl on Monday May 16, 2011 @07:13PM (#2554585)
To answer all of your questions: Don't use someone else's wifi if you don't like how it behaves. Your sense of entitlement makes me sick.
Re:Windows 7 Network Awareness: How Windows knows it has an ... by jerrya on Monday May 16, 2011 @07:30PM (#2554646)
Can you expand on that?

How is my wanting to either turn my wifi off, or automatically checking a terms and conditions box at a starbucks, or library, or school, or courtroom, or hospital router demonstrating a sick making sense of entitlement?

I would think many people would want such behavior from their phones, but I can see that you and whomeever voted my original question down are genuinely disturbed I would want this.

Re:Windows 7 Network Awareness: How Windows knows it has an ... by kelnos on Monday May 16, 2011 @08:14PM (#2554762)
I think the point the parent is trying to make is that when you're using someone else's wifi network, it's their network, and they get to determine under what terms you're allowed to access it. If that means logging in, or viewing a page where you're required to explicitly agree to terms, that's the network operator's prerogative.

Annoying? Sure, a little. A "violation of spec" or something to get overly pissed about? Eh, there are far bigger fish to fry.

Re:Windows 7 Network Awareness: How Windows knows it has an ... by shinratdr on Monday May 16, 2011 @08:39PM (#2554823)
> or something to get overly pissed about? Eh, there are far bigger fish to fry.

It's easy to say that when it isn't your responsibility to deal with rightfully frustrated & confused end users that simply want to be able to use this WiFi network like they use every other WiFi network. Connect and forget.

I also have a never-ending hate for WiFi networks that use portals as they break tons of functionality and always have caveats & problems like the ones parent described.

The worst part? Acting very arrogant about it is the standard IT response, and it blatantly and demonstrably decreases security. Users keep splitters, ethernet cables & routers in their offices, in their laptop bags and around the building.

So go ahead, take this attitude towards the end users of your network. Just don't be surprised if the next IT crisis is caused by someone who "just didn't want to deal with the WiFi hassle".

Re:Windows 7 Network Awareness: How Windows knows it has an ... by CWuestefeld on Tuesday May 17, 2011 @10:11AM (#2556405)
Fine, but the way the thing works today, there's no mechanism for discovering what those terms and conditions are, or indeed, that they even exist.

So I go somewhere, flick on my WiFi, and then get frustrated because various tools (say, my native-code Google Reader app) can't communicate. It can't talk to the network because HTTP is trapped.

The thing is, HTTP is the de facto transport for everything. But these authentication/confirmation pages assume that a human will be reading them.

It seems to me that a mechanism that detects the presence of such a trap, and pops up that response page in a browser window for the user to react to, would solve everyone's problem (if inelegantly).

Re:Windows 7 Network Awareness: How Windows knows it has an ... by jerrya on Tuesday May 17, 2011 @12:24PM (#2556827)
And the other issue is that (if I have this correct), the reason my phone connects automatically to various portal hijacking waps is because in the past I have connected to those waps, and almost certainly checked off the terms and agreements for them, and continued.

I don't believe the nexus one will connect by itself to any open wap, it will just tell you one is available.

It seems absurd for anyone to think I need to check off the terms and agreements every single time I connect to the open wap, everyone's suspicion of course is that no one ever reads through the terms and agreements, we just check the box to make some lawyer or IT dude happy and continue.

Re:Windows 7 Network Awareness: How Windows knows it has an ... by jerrya on Tuesday May 17, 2011 @12:10PM (#2556785)
Exactly. This is the specific reason why I ask if these portal pages, the DNS hijacking violates some RFC.

I do understand the desire and even the need for some form of authentication, or notice you are on someone else's network and ought to read what the terms are.

But the behavior of how that is implemented today is totally obnoxious, especially since for the most part, the terms and agreements are boilerplate intended to satisfy some lawyer, and functionally get in the way of why the vendor or site provided the wifi access in the first place.

Re:Windows 7 Network Awareness: How Windows knows it has an ... by jodrellblank on Monday May 16, 2011 @08:27PM (#2554792)
How much are we supposed to adjust our opinions based on your feeling sick, exactly? Have you tried not feeling sick? Perhaps it's a localised glitch?