Posts with the tag Spoofing

Changing The MAC Address of a NIC in OS X Mountain Lion

This process is also known as spoofing.

# generating a random mac:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
# ↑ although this doesn't take care of bit 0 and 1 of byte 0 which should be 0.
#   ( )

Read on

Set Your Physical NIC to a Different MAC Address

It's called MAC spoofing.

The commands do achieve it are:

  1. Bring down the interface and enter a new MAC address
  2. Bring up the interface

On Ubuntu Linux this can be achieved (for nic eth1 and a new mac address of 00:14:11:12:34:15) like this:

sudo ifconfig eth1 down hw ether 00:14:11:12:34:15
sudo ifconfig eth1 up


Read on