Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

macchanger modifies the MAC address of a network interface. Used in wireless attacks to impersonate connected clients, bypass captive portals, avoid detection, or set a specific BSSID for a rogue AP.

Install

sudo apt install macchanger

Usage

macchanger [options] <interface>
The interface must be down before changing the MAC.

Common Flags

FlagDescription
-m <MAC>Set a specific MAC address
-rSet a random MAC address
-pReset to original permanent MAC
-sShow current and permanent MAC
-lList known vendors
-aSet random vendor MAC (same kind)
-ASet random MAC (any vendor)

Set Specific MAC

systemctl stop network-manager
ip link set wlan1 down
macchanger -m <TARGET-MAC> wlan1
ip link set wlan1 up

Set Random MAC

ip link set wlan1 down
macchanger -r wlan1
ip link set wlan1 up

Restore Original MAC

ip link set wlan1 down
macchanger -p wlan1
ip link set wlan1 up

Show Current MAC

macchanger -s wlan1