acrogenesis / macchanger

Change your mac address, for OS X
https://acrogenesis.com/macchanger/
MIT License
319 stars 43 forks source link

Doesn't work on MacOS Monterey any more #15

Closed ghost closed 2 years ago

ghost commented 2 years ago

It only shows infinite output of ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address even if I specified a specific MAC address

acrogenesis commented 2 years ago

Hi David can you provide more info on your Mac and you're using

ghost commented 2 years ago

Macbook Air (M1) macOS Monterey (12.0.1)

ghost commented 2 years ago

Monterey had just been released yesterday, maybe Apple removed the functionality to assign random MAC address to the wireless card

ghost commented 2 years ago
Screenshot 2021-10-27 at 21 01 33

uname -a output

Darwin [redacted] 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64 arm64 MacBookAir10,1 Darwin

gy2256 commented 2 years ago

I have the same issue and the output is the same.

acrogenesis commented 2 years ago

Yeah, I've been researching why this is happening. Apple changed the way it worked in Monterey.

githoniel commented 2 years ago

same for me. It also do not work for wire network via type-c

sudo ifconfig {name} ether {mac}

always return ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address

dodas commented 2 years ago

Did you guys try disconnecting from the wifi network before changing the mac address?

acrogenesis commented 2 years ago

@dodas that works, I'm updating the code to include a wifi disconnect

drmikexo2 commented 2 years ago

I'm seeing the same issue with macchanger 1.4.1.

I'm on a MacBook Pro (15-inch, 2019) on macOS 12.1

uname -a Darwin quicksilver.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64

image
drmikexo2 commented 2 years ago

never mind, was able to figure out this problem.

update for anyone facing the same issue with macOS 12.1 through 12.2.1 (the highest version as of this writing):

  1. do not disable wifi entirely first. for example, DO NOT use networksetup -setairportpower en0 off #don't use this
  2. instead, merely disconnect from all wi-fi networks. e.g. as of this writing, this works: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport "en0" -z # use this

enjoy

H3in0Wal13r commented 2 years ago

that's work perfect for the wifi device but what if you use a usb network device. Here you got the same error. How must the commad look like to resolve the problem? thank's for your reply