1

I'm looking to generate a list of the machines connected to my wifi.

I'm myself connected though wifi, and would like to access this information though my wifi laptop instead of the pc that has the router connected to it (as it runs on windows).

I would like to use the shell to simply get a list of all the mac addresses connected.

Is there a way to do that? I've read this post, and this post, and it seems that those solutions are for computers connected to the router using a cable, and not wireless themselves.

ie. if I do arp -a -i wlan0, I get my own laptop connected, but just my laptop.

Is there any way to do this? I've downloaded Kali repositories, so maybe there's some tool to do that?

Thanks!

2 Answers 2

2

ie. if I do arp -a -i wlan0, I get my own laptop connected, but just my laptop.

Per the link you referenced

 sudo arp-scan --interface=wlan0 --localnet

So try that, or

 sudo arp -a -i wlan0 --localnet

And see if it returns more than just your laptop.

3
  • Just perfect, thanks! It work with sudo arp-scan --interface=wlan0 --localnet. Two last questions: Should I see the router in the list, and myself? Thanks again!
    – Rosamunda
    Jan 4, 2015 at 19:31
  • Not sure about the router, but I think you should see yourself. I'm at work on phone, otherwise I would try it. If your having an issue determining what what, maybe you need to run this first and then run the nmap scan sudo nmap -sn 192.168.1.0/24 and compare the two
    – geoffmcc
    Jan 4, 2015 at 19:40
  • sudo arp -n -i en1 -l -a this works on mac too. :) Apr 5, 2016 at 6:29
1

For computer/laptop connected to your AP you can do this:

1) Set your wifi card in monitor mode:

sudo airmon-ng start wlan0

2) Then with airodump-ng you can view all wifi devices in your area, but you want to know only the devices connected to your AP so you have to filter the output:

sudo airodump-ng --bssid 'AP's MAC address' mon0

For example: sudo airodump-ng --bssid FF:FF:FF:FF:FF:FF mon0 . In the lower part you will see how is connected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .