macchanger

macchanger Description

Macchanger (also known as the GNU MAC Changer) makes it easy to manipulate the MAC address for network interfaces. It offers various functions, such as changing the address so that it matches a specific manufacturer, or completely randomizing it.

Homepage: http://www.gnu.org/software/macchanger

GitHub: https://github.com/alobbs/macchanger

Author: Alvaro Lopez Ortega

License: GPLv3

macchanger Help

Usage:

macchanger [options] device

Options:

  -h,  --help                   Print this help
  -V,  --version                Print version and exit
  -s,  --show                   Print the MAC address and exit
  -e,  --ending                 Don't change the vendor bytes
  -a,  --another                Set random vendor MAC of the same kind
  -A                            Set random vendor MAC of any kind
  -p,  --permanent              Reset to original, permanent hardware MAC
  -r,  --random                 Set fully random MAC
  -l,  --list[=keyword]         Print known vendors
  -b,  --bia                    Pretend to be a burned-in-address
  -m,  --mac=XX:XX:XX:XX:XX:XX  Set the MAC XX:XX:XX:XX:XX:XX

-s, --show

Prints the current MAC. This is the default action unless otherwise specified.

-l, --list[=KEYWORD]

List all known vendors. If you specify the KEYWORD, then only vendors in whose description it is present will be displayed.

-b, --bia

Setting a completely random MAC address will pretend it is a permanent (burned-in on the device) address. If this option is not used, the MAC will have the locally-administered bit set.

macchanger Usage Example

At the moment of changing the MAC, the device should not be used (be connected in any way, or have an up status). To put an interface down:

sudo ip link set dev INTERFACE down

For spoofing, you need to specify the name of the interface, in each next command replace wlan0 with the name of the interface whose MAC you want to change.

To find out the MAC values, run the command with the -s option:

macchanger -s wlan0

It will output something like:

Current MAC:   00:c0:ca:96:cf:cb (ALFA, INC.)
Permanent MAC: 00:c0:ca:96:cf:cb (ALFA, INC.)

The line “Current MAC” means the address at the moment, and “Permanent MAC” means the permanent (real) address.

To spoof a MAC address to a completely arbitrary address:

sudo macchanger -r wlan0

The following will be displayed:

Current MAC:   00:c0:ca:96:cf:cb (ALFA, INC.)
Permanent MAC: 00:c0:ca:96:cf:cb (ALFA, INC.)
New MAC:       66:98:08:45:c5:de (unknown)

The first two lines have already been explained, the line “New MAC” means a new address.

To randomize only the bytes that determine the uniqueness of the device, the current MAC address (i.e. if you check the MAC address, it will be registered as from the same vendor), run the command:

sudo macchanger -e wlan0

To set the MAC address to a specific value, run:

sudo macchanger --mac=XX:XX:XX:XX:XX:XX wlan0

Here XX:XX:XX:XX:XX:XX is the MAC you want to change to.

Finally, to return the MAC address to the original, constant value burned-in in the hardware:

sudo macchanger -p wlan0

After changing the MAC address, return the network interface to the up state:

sudo ip link set dev INTERFACE up

To list all known vendors and their MAC addresses:

macchanger -l

To list all vendors with the string “Intel” in their name:

macchanger --list=Intel

How to install macchanger

Installation on Kali Linux

The program is pre-installed on Kali Linux.

To install in minimal versions, run the command:

sudo apt install macchanger

Installation on Debian, Linux Mint, Ubuntu

sudo apt install macchanger

Installation on BlackArch

The program is pre-installed on BlackArch.

To install in minimal versions, run the command:

sudo pacman -S macchanger

macchanger Screenshots

macchanger Tutorials

Recommended for you:

Comments are Closed

Рейтинг@Mail.ru