Firstly, I want to thank you as finally I found IP addresses that were connected to my modem. I found out all 5 devices that were connected to my modem using nmap, while it was showing only 2 devices before scanning. I want to find their mac address and remove those devices from my Wi-Fi using Gnome-Terminal. I am able to do this using modem interface but I want to work on Ubuntu and learn Linux, so I want to do this using Terminal. İs it possible? If yes, please tell me how?
Asked
Active
Viewed 1.7k times
3 Answers
3
You can use nmap with any of several options. The machines must be on the same LAN, no router in between.
nmap -sPnmap -snnmap -sLnmap -PU
See man nmap and / or: https://nmap.org/book/man-host-discovery.html
2
If you are interested in using something other than nmap, there is also a tool called tuxcut that lets you scan and block other devices's MAC address connected to the same LAN as yours.
Find the tool here.
Sandeep Neupane
- 499
2
An alternative to nmap would be arp-scan. It's reasonably fast and does give mac addresses. The only limitation it has is that it is only for IPv4 addresses, but for a home network as in your case, this will be OK.
Sample output:
xieerqi:$ sudo arp-scan --interface=eth0 147.153.173.0/24
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
147.153.173.1 3c:df:1e:8c:ed:40 Cisco Systems
147.153.173.16 34:17:eb:c0:21:0f (Unknown)
147.153.173.20 34:17:eb:c1:29:3e (Unknown)
147.153.173.21 00:17:f2:05:cb:cc Apple Computer
147.153.173.21 00:17:f2:05:cb:cc Apple Computer (DUP: 2)
147.153.173.22 bc:30:5b:d8:9f:ea Dell Inc.
147.153.173.23 00:22:19:2d:7b:33 Dell Inc
147.153.173.24 34:17:eb:c0:56:cb (Unknown)
147.153.173.29 34:17:eb:c0:21:76 (Unknown)
Sergiy Kolodyazhnyy
- 107,582