3

How can I print out information about a Wireless Access Point in range? Can I for example get the MAC address?

4

You can use

iwlist <interface> scan

For example:

iwlist wlan0 scan

Also, using pipes and egrep, and practicing a little with iwlist scan, you can extract the info you want:

iwlist wlan0 scan | egrep 'Address:|ESSID:'
3

If you are on Linux then you can usually just do

ifconfig 

or

iwconfig

to get info on your NIC. To scan you usually do

iwlist wlan0 scan

to get info on the wireless access points in range. In this case your wireless interface has already been identified using ifconfig (or iwconfig) as wlan0.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.