MAC spoofing in Linux

Media Access Control address (MAC address) is a unique identifier assigned to network adapters or network interface cards.

Usually, they are pre-written by the manufacturer and encodes the manufacturer’s registered identification number. Although MAC address is intended to be a permanent and unique identification code, it is possible to change the MAC address of most of the network hardwares that are available today. This process is known as MAC Spoofing.

In Linux systems, it is possible to set a temporary MAC address for the hardware with 3 easy steps. The address set by this method will be changed to the original code after rebooting the system.

1. Stop the network card.
$ sudo ifconfig eth0 down
here eth0 is the ethernet network controller.

2. Set a new MAC address.
$ sudo ifconfig eth0 hw ether @@:@@:@@:@@:@@:@@
replace the ‘@’ symbols with new MAC address.

3. Start the network card again.
$ sudo ifconfig eth0 up

Type ifconfig to display network adapter properties.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s