Friday, June 1, 2012

change mac address in linux


How To Perform The Attack:
The tool we will be using is "macchanger". First you will need to install it.

Code:
apt-get install macchanger
or
Code:
yum install macchanger

First because we cannot change the mac address on an active card we need to run
Code:
ifconfig wlan0 down
You will leave it down until after the mac address as been changed.

To view the list of options for this tool you can run
Code:
macchanger --help
To view a list of available commands for this application.
[Image: screenshot3ij.jpg]

If you are looking to spoof a specific device you can get the prefix for the mac address from the link I provided above or by running the command
Code:
macchanger -l

So if you wanted to to spoof say a cisco device you would do
Code:
macchanger -m 00:e0:f9:52:72:f6 wlan0
Wlan0 would be the device in which your trying to spoof the mac for.
If successful we will see
[Image: screenshot5jx.jpg]
Then after this you would run
Code:
ifconfig wlan0 up

If you are not bothered about specifying your mac address as a specific device you can run
Code:
macchanger -a
Which will select a random vendor and spoof it
or
Code:
macchanger -r
Which won't focus on vendors and just randomly set the mac address

I hope this was informal, if you have any questions feel free to ask.

1 comment:

  1. I have used this software to change my MAC address I was surprised to see that my MAC address actually changed . Thanks for sharing the software .

    Regards
    Silvester Norman

    Change Mac Address

    ReplyDelete