Skip to content

Instantly share code, notes, and snippets.

@sshadmand
Last active Mar 11, 2022
Embed
What would you like to do?
When Public WiFi (like Airport) wont re-prompt for login
//
// Based on answer from Gareth here: https://apple.stackexchange.com/questions/88396/forcing-the-wifi-password-entry-dialogue-to-display
//
#> ifconfig
// this will give you a list of MAC addresses
// or
#> sudo ifconfig en0
// will give you a specific MAC address (you will be prompted for your system's admin password
/* For example:
en0: flags=8321<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 22:41:41:5a:a1:10 // <!-- !! This is the number you want
inet6 fe80::10eb:cb59:bf46:9978%en0 prefixlen 64 secured scopeid 0x8
inet 172.20.28.137 netmask 0xffffc000 broadcast 172.20.63.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
*/
// Then change your MAC address so it forces a re-login when you open the browser
// Here I changed the ...:10 to ...:11
#> sudo ifconfig en0 lladdr 22:41:41:5a:a1:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment