From 6fe19623170868724cf87bb2877cd8e68702ae6b Mon Sep 17 00:00:00 2001 From: Matt Woolford <57449285+mattwoolford@users.noreply.github.com> Date: Tue, 23 Dec 2025 12:28:13 +0400 Subject: [PATCH] - Remove deprecated Airport dependency --- spoofmac/interface.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/spoofmac/interface.py b/spoofmac/interface.py index 602ce0d..a344cb5 100644 --- a/spoofmac/interface.py +++ b/spoofmac/interface.py @@ -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): """ @@ -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',