alobbs / macchanger

GNU MAC Changer
http://www.gnu.org/software/macchanger
GNU General Public License v3.0
577 stars 112 forks source link

Problem restoring Mac address #70

Closed kaliforniak closed 4 years ago

kaliforniak commented 4 years ago

I have a problem when I make macchanger -p wlan0. When I check with Macchanger It seems the Mac is changed to the original but when i do ifconfig wlan0, MAC is another random MAC

----INTERFACE wlan?
wlan0
----DOWN wlan0...
----CHANGING MAC...
Current MAC:   d2:9a:72:16:b0:96 (unknown)
**_**Permanent MAC: 00:c0:xx:xx:xx:xx (ALFA, INC.)/////////////////My MAC**_**
New MAC:       d6:ad:85:34:12:77 (unknown)
----UP wlan0...
----KILLING CONFLICTIVE PROCESS...

Killing these processes:

    PID Name
   6298 wpa_supplicant

---Pulsa cualquier tecla para revertir el proceso 
----Iniciando proceso revertido...
----DOWN wlan0...
---Pulsa cualquier tecla para revertir el proceso 
----PERMANENT MAC... ////////////////////macchanger -p wlan0
Current MAC:   d6:ad:85:34:12:77 (unknown)
Permanent MAC: 00:c0:xx:xx:xx:xx(ALFA, INC.) 
New MAC:       00:c0:xx:xx:xx:xx (ALFA, INC.)
----PERMANENT MAC... ////////////////////macchanger -p wlan0 repitting the process
Current MAC:   00:c0:xx:xx:xx:xx5 (ALFA, INC.)
Permanent MAC: 00:c0:xx:xx:xx:xx (ALFA, INC.)
New MAC:       00:c0:xx:xx:xx:xx (ALFA, INC.)
It's the same MAC!!
----UP wlan0...
----UP NetworkManager...
----INFO Mac...
Current MAC:   00:c0:xx:xx:xx:xx (ALFA, INC.)
Permanent MAC: 00:c0:xx:xx:xx:xx (ALFA, INC.)
root@kali:~# ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 0a:84:12:d4:1b:95  txqueuelen 1000  (Ethernet)//////////////////// Random Mac again
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
kaliforniak commented 4 years ago

Ok. I solved the problem reading the forum...

Whatever option you choose, in the text editor, add the following lines: Code:


[device]
wifi.scan-rand-mac-address=no

[connection]
ethernet.cloned-mac-address=preserve
wifi.cloned-mac-address=preserve

Then save the file, and inside the terminal, restart NetworkManager by typing in: Code:

service network-manager restart