Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipconfig error Sonoma 14.4 #118

Open
brownbread69 opened this issue Mar 14, 2024 · 9 comments
Open

ipconfig error Sonoma 14.4 #118

brownbread69 opened this issue Mar 14, 2024 · 9 comments

Comments

@brownbread69
Copy link

ipconfig is deprecated. I see this was addressed in the change log, but with the most recent version still cannot get it to work right.


WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool.
ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address Traceback (most recent call last):
File "/opt/homebrew/bin/spoof-mac", line 138, in
sys.exit(main(arguments, root_or_admin))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/bin/spoof-mac", line 118, in main
set_interface_mac(device, target_mac, port)
File "/opt/homebrew/Cellar/spoof-mac/2.1.1_5/libexec/lib/python3.12/site-packages/spoofmac/interface.py", line 540, in set_interface_mac
spoofer.set_interface_mac(device, mac, port)
File "/opt/homebrew/Cellar/spoof-mac/2.1.1_5/libexec/lib/python3.12/site-packages/spoofmac/interface.py", line 450, in set_interface_mac
subprocess.check_call([
File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ifconfig', 'en0', 'ether', '08:00:27:43:13:E6']' returned non-zero exit status 1.

@minnesnowtawastaken
Copy link

I was able to work around this issue by first disabling wifi on my M1 Air (running 4.1), then running the spoof-mac command. Running the command will also re-enable wifi.

@brownbread69
Copy link
Author

This worked, thank you. Although it does say it will not work in the future due to deprecation of the ipconfig tool. I hope there is a fix in the works.

@danydin
Copy link

danydin commented Apr 2, 2024

same issue, doing what you said solve it , but i hope for a perm fix..

@Keyesb108
Copy link

I was able to work around this issue by first disabling wifi on my M1 Air (running 4.1), then running the spoof-mac command. Running the command will also re-enable wifi.

thank you so much it now work on my macbook air m2

@gaetansenn
Copy link

Thanks @minnesnowtawastaken this worked for me ;)

@ar5hil
Copy link

ar5hil commented May 10, 2024

@minnesnowtawastaken it doesn't seem to work for me i am using ifconfig en0 down but as soon as i use sudo spoof-mac randomize en0 wifi restarts with the same mac address

@ar5hil
Copy link

ar5hil commented May 11, 2024

Found a Trick and it is working

Thanks @aaronleetw, @DarkNero69!

@artkiver developed a new version that supports macOS Sonoma 14.4+ on branch v0.2-draft.

Please let @artkiver know if the new version does the job:

git clone -b v0.2-draft https://github.com/shilch/macchanger
cd macchanger
make
./macchanger

Thank you!

@brownbread69
Copy link
Author

brownbread69 commented May 11, 2024 via email

@fharper
Copy link

fharper commented May 21, 2024

It also keep the same mac address for me when using sudo spoof-mac randomize en0 after turning off the wifi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants