I'm staying at a hotel for the next two weeks that uses a MAC address filtering system for their wireless and wired internet. Not much of a problem, but the system resets itself at 12:30AM every night. Still not much of an issue, except that I have my Xbox 360 up here for Netflix. Since there's no graphical browser for it, I can't access the login page. My workaround has been to disassociate my Macbook from the network, change its MAC address to match the Xbox, connected to the network, authorized said MAC address with the system, then repeated the steps to get my Macbook back on. My question is if there is some way I could write a shell script or Applescript to do this automatically?
I've already written a script to change the computer's MAC address to the Xbox, but I'm not sure how to join a network via CLI or Applescript. The order of business I would need is
I've already written a script to change the computer's MAC address to the Xbox, but I'm not sure how to join a network via CLI or Applescript. The order of business I would need is
- Disassociate Airport from current network via airport -z
- Spoof MAC address to match Xbox's
- Join network
- Open web browser, click accept on login page
- Repeat to get Macbook back on network