feross / spoof

Easily spoof your MAC address in macOS, Windows, & Linux!
https://feross.org/spoofmac/
MIT License
1.78k stars 99 forks source link

[feature request] [macOS] spoof should turn off, then turn on device after changing MAC address #16

Closed sg-s closed 7 years ago

sg-s commented 7 years ago

Problem:

After randomising MAC address with

sudo spoof randomize <device>

where the device is a wifi connection, the computer does not re-connect to the last connected wifi.

Proposed Solution

turn the wifi card off and on after randomizing MAC.

sg-s commented 7 years ago

you can do this using:

networksetup -setairportpower <device> off
networksetup -setairportpower <device> on
feross commented 7 years ago

Great suggestion. Shipped as 1.2.0!

sg-s commented 7 years ago

thanks!