G
G
good_sefore2020-02-13 18:44:11
linux
good_sefore, 2020-02-13 18:44:11

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

4 answer(s)
V
Vadim Priluzkiy, 2020-02-13
@Oxyd

nmcli device wifi rescan&&nmcli device wifi list|grep "networkname"|tr -d "*"|awk '{print $1}'

networkname is the name of the access point.

K
Karpion, 2020-02-13
@Karpion

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.

K
ky0, 2020-02-13
@ky0

airodump run and grab output by network name.

Z
Zzzz9, 2020-02-13
@Zzzz9

iwlist wlan0 scan

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question