I am writting a script in bash that detect all interfaces and change their MAC to another one random. I need to know where can I find the permanent MAC of interfaces.
If I use ifconfig $interface, the output is not a real MAC... (the same with cat /sys/class/net/$interface/address
The only way that I found was with cat /etc/udev/rules.d/70-persistent-net.rules, it show the original mac, but, if I have a wireless card in monitor mode (mon0 for example), this method will not work... :(
Exist some method (like macchanger -s $interface), where I can see my permanent MAC with virtual interface??
Note: Sorry for my bad english :S