Answer the question
In order to leave comments, you need to log in
How to get the mac address of a wifi network knowing the name of this network?
How to get the mac address of a wifi network knowing the name of this network? To print in its pure form in the terminal. The channel on which the network operates is also known. Write an example if possible.
Answer the question
In order to leave comments, you need to log in
nmcli device wifi rescan&&nmcli device wifi list|grep "networkname"|tr -d "*"|awk '{print $1}'
A network does not have a MAC address. Probably, we are talking about the MAC address of the router or access point; however, the access point may not have a MAC address at all, it also works as an Ethernet switch.
I'm somehow not sure that you can find out the MAC address of the router if you do not join it - I need to know the password for this. Although it depends on whether the entire channel is encrypted or only the contents of the packets.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question