Penetration Testing Step by Step: Changing Your MAC Address

Hide Your Ass, Change Your MAC

Manually

ifconfig wlan0 down
ifconfig ​wlan0 hw ether f1:a7:12:34:1b:c1
ifconfig wlan0 up

With macchanger

ifconfig wlan0 down

# print your MAC
macchanger -s wlan0​

# set your MAC
macchanger -m 11:22:33:44:55:66 wlan0

# set to a random vendor, random ID
macchanger -A wlan0

# set to your physical vender, random ID
macchanger -a wlan0

# set to a totally random value
macchanger -r wlan0
# uh this is gonna stand out: no vendor match!
# also, check your MAC afterwards - some implementations
# just do a simple increment by 1

# reset to your physical MAC
macchanger -p wlan0

# wanna see a list of vendors?
macchanger -l

# don't forget to bring the interface back up
ifconfig wlan0 up

There, that’ll teach you to be too noisy with your scans. Don’t do default scans from within other tools like Armitage; do an nmap -T2 instead. Getting shunned from the network for an hour or three sux.

Leave a Reply