Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions spoofmac/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,6 @@ class MacSpoofer(OsSpoofer):
OS X platform specfic implementation for MAC spoofing.
"""

# Path to Airport binary. This works on 10.7 and 10.8, but might be different
# on older OS X versions.
PATH_TO_AIRPORT = (
'/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport'
)

def find_interfaces(self, targets=None):
"""
Expand Down Expand Up @@ -439,13 +434,6 @@ def set_interface_mac(self, device, mac, port):
'on'
])

# For some reason this seems to be required even when changing a
# non-airport device.
subprocess.check_call([
MacSpoofer.PATH_TO_AIRPORT,
'-z'
])

# Change the MAC.
subprocess.check_call([
'ifconfig',
Expand Down