PDA

View Full Version : Automatic MAC Filtering




johnnyham
May 28, 2011, 06:54 PM
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

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



jiminaus
May 28, 2011, 09:08 PM
Sorry I can't answer your question directly.

But one other solution to this might be to use your macbook has a nat router.


Connect to the hotel's wireless network on your macbook and do the authorisation stuff.
Turn on internet sharing on your macbook so that ethernet is shared to wireless.
Connect your xbox to your macbook via ethernet (LAN cable).
Setup you xbox's network configuration so your macbook is the default router.

johnnyham
May 29, 2011, 04:42 PM
Sorry I can't answer your question directly.

But one other solution to this might be to use your macbook has a nat router.


Connect to the hotel's wireless network on your macbook and do the authorisation stuff.
Turn on internet sharing on your macbook so that ethernet is shared to wireless.
Connect your xbox to your macbook via ethernet (LAN cable).
Setup you xbox's network configuration so your macbook is the default router.


I've actually already had to do that. The problem is that I don't have a crossover cable long enough to reach from the Xbox to my Macbook on the couch. Additionally, the cable's snaplocks have broken off, so even a gentle snag on the cable unplugs it. Plus, I don't like having my laptop tied down, since it's supposed to be mobile...

My other thought on the matter is to spoof the MAC address of another router on the network. Since the individual routers aren't affected by the MAC address filtering, there must be a whitelist. I can get the MAC address of the router I'm connected to via arp -a, but the problem lies in kicking the other router off the network, since two identical MAC addresses can't exist on the network.

chown33
May 29, 2011, 07:40 PM
... but I'm not sure how to join a network via CLI ...

https://discussions.apple.com/thread/2359806?start=0&tstart=0

man networksetup

zKarp
Jun 1, 2011, 11:42 AM
You don't need crossover cable for mac -> xbox.