How to change MAC address using macchanger on Kali Linux - LinuxConfig.org


#1
The objective is to change or fake an original network card's hardware MAC address. The following article will show how to change MAC address using macchanger on Kali Linux.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-change-mac-address-using-macchanger-on-kali-linux

#2

Abaan

ifconfig wlan0 down
macchanger -m XX:XX:XX:XX:XX:XX wlan0
ifconfig wlan0 up

The 3 commands given below will change mac-address successfully!!!


#3

Jon S

After the connection is lost I have to reconnect to the wifi losing the new MAC address. ifconfig wlan0 up does not reconnect. How do I retain the new MAC address?


#4

Qasim Khalid

i’m having trouble with macchanger in kali linux 2017.3, when i type:
macchanger -r wlan0
it works and changes the mac successfully But.
when i tries to add a specific mac:
macchanger -m XX:XX:XX:XX:XX:XX wlan0
it shows error on third line like shown below:
[ERROR] Could not change MAC: interface up or insufficient permissions:

i have tried many things but not worked…
please help!


#5

Abaan -> Qasim Khalid

ifconfig wlan0 down
macchanger -m XX:XX:XX:XX:XX:XX wlan0
ifconfig wlan0 up

The 3 commands given below will change mac-address successfully!!!


#6

RJ Levesque Jr -> Qasim Khalid

Have to work as root and be sure eth0 is down first


#7

Tim -> Qasim Khalid

Do ifconfig wlan0 down first, then attempt changing mac. After you’ve made changes, ifconfig wlan0 up.


#8

Saurabh

Bring your network interface up and display your new MAC addres:

# ifconfig eth0 down
# macchanger -s eth0

There’s a slight mistake in the first command

#ifconfig eth0 down

It should not be down, it should be up. Like the command below.

#ifconfig eth0 up


#9

Din Dayal Kumar

after changing the mac address my connection is lost what i will do


#10

Abaan -> Din Dayal Kumar

If you are loosing your link to your access-point, check that is there any MAC-FILTERING in your access-point !!!..


#11

Abaan -> Din Dayal Kumar

Are you loosing the connection between you and your access-point?


#12

Muhann Sh -> Abaan

this Command will Fix it >>> service network-manager start


#13

here is what i did, you can even switch networks with your mac hidden:

#!/bin/bash

ifconfig $1 down
macchanger -r $1
ifconfig $1 up
service network-manager stop
service network-manager start