Nmap done: 256 IP addresses (17 hosts up) scanned in 5.74 arp -a | sort -n -k 1,1 Yours could be wlan0 or ip addr show wlp3s0 | grep "inet " # my wireless interface is listed as wlp3s0. There are other options for 'host discovery', like with nmap -sL or nmap -Pn. Here's something I run to discover local network devices that's mostly copy-paste-able. Nmap is great, if a little confusing to use. After all, the FAQ suggests to provide context for links. I didn't find the existing answers satisfying enough, so I thought I'd give a try. Nmap done: 256 IP addresses (5 hosts up) scanned in 25.52 seconds MAC Address: 20:F4:1B:E5:8F:7B (Shenzhen Bilian electronic) You would get for instance: Starting Nmap 7.40 ( ) at 18:49 CEST Use with sudo in order to see the MAC addresses. There is also an interesting flag for nmap that would let you see the MAC vendor - if known. Would display something like: 192.168.1.1 is alive The 2>1 part allows grep to filter the output. The -r 1 flag tells fping to perform only one round. You could use fping sudo apt-get install fping (in debian-like OSs).įping is similar to ping, but much better performing when pinging multiple hosts. That's it, if you need more help with nmap, see the nmap official documentation, or run: nmap -help Nmap done: 256 IP addresses (5 hosts up) scanned in 3.26 seconds MAC Address: -MAC ADDRESS- (Cameo Communications) Nmap output will look something like this: Starting Nmap 5.21 ( ) at 10:52 EST Run nmap using -sP parameter, which will scan no further than checking if the host is online: sudo nmap -sP 192.168.1.0/24 Use the inet addr and Mask to figure out the network address in CIDR notation, more on CIDR here. Ifconfig output for the interface I want to scan: wlan1 Link encap:Ethernet HWaddr 00:1f:3b:03:d2:bf Next figure out your network address by using ifconfig: ifconfig First you need to install nmap as it may not come pre-installed with you distro. This is what I use, nmap, and an address using CIDR block notation of the network you want to scan.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |