feross / spoof

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

Assumption of ifconfig for Linux #6

Closed dcousens closed 7 years ago

dcousens commented 9 years ago

Wasn't able to play with this due to its reliance on ifconfig, where I use iproute2. The equivalent commands to randomize your MAC using iproute2:

ip link set dev eth0 down
ip link set dev eth0 address `hexdump -n3 -e'/3 "00:60:2F" 3/1 ":%02X"' /dev/urandom`
ip link set dev eth0 up

Up to you if this information is useful or not, just putting it out there for others.

feross commented 9 years ago

Thanks for the helpful note. What distribution are you using? Did you uninstall ifconfig?

dcousens commented 9 years ago

What distribution are you using? Did you uninstall ifconfig?

Arch Linux, I never installed ifconfig.

feross commented 9 years ago

Got it. PR welcome!

feross commented 8 years ago

@dcousens Can you send a PR for this?

dcousens commented 8 years ago

@feross don't have the time atm. Sorry :(

feross commented 8 years ago

It's all good, no problem

akiva commented 8 years ago

+1 on this point, if I get the chance in the next week or two, I will offer a PR.

dcousens commented 7 years ago

@akiva I might close, ping a PR if you think you're up for it

feross commented 7 years ago

I'll just add a note to the readme that this package requires ifconfig on Linux. If someone wants to send a PR later, that's always welcome.

Luc45 commented 2 years ago

+1 Manjaro / Arch Linux.