Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 28, 2011, 06:54 PM   #1
johnnyham
macrumors regular
 
Join Date: Jun 2010
Automatic MAC Filtering

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
  1. Disassociate Airport from current network via airport -z
  2. Spoof MAC address to match Xbox's
  3. Join network
  4. Open web browser, click accept on login page
  5. Repeat to get Macbook back on network
__________________
Mid 2009 white Macbook, 2.13Ghz C2D, 500GB HDD, 4GB RAM running OSX 10.7.1 and Win7 Ultimate; 8GB iPod Touch 2G with iOS 4; 16GB iPhone 4 w/iOS 5
johnnyham is offline   0 Reply With Quote
Old May 28, 2011, 09:08 PM   #2
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Sorry I can't answer your question directly.

But one other solution to this might be to use your macbook has a nat router.
  1. Connect to the hotel's wireless network on your macbook and do the authorisation stuff.
  2. Turn on internet sharing on your macbook so that ethernet is shared to wireless.
  3. Connect your xbox to your macbook via ethernet (LAN cable).
  4. Setup you xbox's network configuration so your macbook is the default router.
jiminaus is offline   0 Reply With Quote
Old May 29, 2011, 04:42 PM   #3
johnnyham
Thread Starter
macrumors regular
 
Join Date: Jun 2010
Quote:
Originally Posted by jiminaus View Post
Sorry I can't answer your question directly.

But one other solution to this might be to use your macbook has a nat router.
  1. Connect to the hotel's wireless network on your macbook and do the authorisation stuff.
  2. Turn on internet sharing on your macbook so that ethernet is shared to wireless.
  3. Connect your xbox to your macbook via ethernet (LAN cable).
  4. 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.
__________________
Mid 2009 white Macbook, 2.13Ghz C2D, 500GB HDD, 4GB RAM running OSX 10.7.1 and Win7 Ultimate; 8GB iPod Touch 2G with iOS 4; 16GB iPhone 4 w/iOS 5
johnnyham is offline   0 Reply With Quote
Old May 29, 2011, 07:40 PM   #4
chown33
macrumors 603
 
Join Date: Aug 2009
Quote:
Originally Posted by johnnyham View Post
... but I'm not sure how to join a network via CLI ...
https://discussions.apple.com/thread...art=0&tstart=0

man networksetup
chown33 is offline   0 Reply With Quote
Old Jun 1, 2011, 11:42 AM   #5
zKarp
macrumors member
 
Join Date: Oct 2008
Location: New York
Send a message via AIM to zKarp Send a message via MSN to zKarp Send a message via Skype™ to zKarp
You don't need crossover cable for mac -> xbox.
__________________
Snow Leopard, Windows 7 Ultimate; 8gb iPod Touch; 1TB Hardrive Fantom GreenDrive
Just trying to find my way in life..
I support the MacRumors Blood Drive!
zKarp is offline   1 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPod blows through Airport Extreme Mac FIltering johnnygeneric Mac Peripherals 0 Sep 30, 2013 08:05 AM
Automatic video sync between iPhone and Mac Gogurt48 iOS 7 7 Aug 3, 2013 01:54 PM
Guest Network + MAC Filtering = Finally works! portishead Mac Peripherals 0 Jun 15, 2013 03:47 PM
Mac doing an automatic download, why? zowenso Mac Basics and Help 30 Oct 15, 2012 09:22 PM

Forum Jump

All times are GMT -5. The time now is 06:58 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC