Live data from Hacker News

Airpass – Easily overcome WiFi time limits

airpass.tiagoalves.me

21–30 of 278 posts

Re: Airpass – Easily overcome WiFi time limits

#22
post #9

Alternatively, if you don't want to run the whole Electron app, the money is this line: sudo.exec("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 -z && ifconfig en0 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`",

Why does a Mac-only app that shows a menu bar icon and a notification popup need to be Electron…? That’s 30 lines of Swift, max.

People forget to think about Swift let alone tools like Platypus.

Re: Airpass – Easily overcome WiFi time limits

#24

Earlier quoted context omitted.

I wonder how it detected it. Perhaps the randomly-generated ones are mostly in invalid/unassigned MAC space?

There is a "local bit" in MAC addresses per RFC 7042, so MAC addresses that have their second character as E, A, 2 or 6 are "local" which effectively means "randomly selected by software". So my current macOS selected MAC address of 16:6a:d2:20:e6:eb is "local" due to the second digit in the address being 6

I had no idea about this; generally i thought it was done by OUI like the GP suggested - they have a small cached table of valid OUIs and warn on prefixes not in that subset. Thanks for sharing!

Re: Airpass – Easily overcome WiFi time limits

#25
post #7

Glad this feature is built into most modern operating systems these days. For MacOS (Sequoia+) you can just forget the network and reconnect to get a new MAC address [1]. Android's documentation for if it decides to generate a new address per connection is a little vague [2], but I'm guessing forgetting and reconnecting works as well, you may also need to flip the "Wi-Fi non-persistent MAC randomization" bit in devel…

I think the rotating address is limited to 3, right? The script here generates one at random.

Re: Airpass – Easily overcome WiFi time limits

#26

Earlier quoted context omitted.

I wonder how it detected it. Perhaps the randomly-generated ones are mostly in invalid/unassigned MAC space?

There is a "local bit" in MAC addresses per RFC 7042, so MAC addresses that have their second character as E, A, 2 or 6 are "local" which effectively means "randomly selected by software". So my current macOS selected MAC address of 16:6a:d2:20:e6:eb is "local" due to the second digit in the address being 6

Oof, I wonder if this is the reason why I constantly have issues with my M1 Mac connecting to cafe hotspots. Regularly I find places that let me connect and then kick me off less than a minute later.

Re: Airpass – Easily overcome WiFi time limits

#27
If you really want to screw with these set your MAC address to 00:00:00:00:00:00

It’s an illegal address, but most equipment will take it because test devices occasionally come from the factory with that MAC. But higher level stuff might barf on it because it’s technically illegal.

Re: Airpass – Easily overcome WiFi time limits

#28
post #9

Alternatively, if you don't want to run the whole Electron app, the money is this line: sudo.exec("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 -z && ifconfig en0 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`",

Why does a Mac-only app that shows a menu bar icon and a notification popup need to be Electron…? That’s 30 lines of Swift, max.

Because that's all anyone knows, and PC development is dead.

>content-length: 47262814

Sigh...

Re: Airpass – Easily overcome WiFi time limits

#29
post #9

Alternatively, if you don't want to run the whole Electron app, the money is this line: sudo.exec("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 -z && ifconfig en0 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`",

Why does a Mac-only app that shows a menu bar icon and a notification popup need to be Electron…? That’s 30 lines of Swift, max.

If you want a frontend for you app, you probably just use Electron and get it over with in a few minutes instead of digging through the docs for Qt or some other framework.

Is it worth it? Probably not, since this is a single-platform app to start with, but JS+HTML are easy to theme and customize, and Qt is... not quite as simple.

Re: Airpass – Easily overcome WiFi time limits

#30
post #17

Earlier quoted context omitted.

What exactly is that doing? Is there some backend limitation for WiFi interfaces that making it think it’s Ethernet is faster?

It just resets the MAC address, making the router believe it's a new device, thus not subject to the "x minute" free WiFi.

That won't circumvent the sms code requirement most free wifi services use.
Post reply on HN