Live data from Hacker News

Airpass – Easily overcome WiFi time limits

airpass.tiagoalves.me

1–10 of 278 posts

Re: Airpass – Easily overcome WiFi time limits

#3
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/.$//'`",

Re: Airpass – Easily overcome WiFi time limits

#4
I feel this would be more useful as a utility to manage your MAC addresses.

That would let you, for example, clone a MAC address or IP address between your computer and a phone, and maybe automatically resolve contention.

That way, you can split purchased WiFi (such as on a plane) between multiple devices.

Re: Airpass – Easily overcome WiFi time limits

#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 developer settings.

On Windows, flipping the "Random hardware address" switch seems to cause it to generate a new seed/address for me.

[1] https://support.apple.com/en-euro/102509

[2] https://source.android.com/docs/core/connect/wifi-mac-random...

Re: Airpass – Easily overcome WiFi time limits

#8

Doesn't Mac already have this with rotating MAC addresses? I also ran into an access point that detected this and required me to turn it off to continue.

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

Re: Airpass – Easily overcome WiFi time limits

#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.

Re: Airpass – Easily overcome WiFi time limits

#10

Doesn't Mac already have this with rotating MAC addresses? I also ran into an access point that detected this and required me to turn it off to continue.

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
Post reply on HN