NMAP (a form of ARP list) is a tool for scanning your network for machines that are up or down along with pulling some helpful information from the machines that are up.
Similar to Remotely Find Raspberry Pi IP but this is a bit more in-depth
First install nmap if needed
Debian/Ubuntu - Install NMAPsudo apt-get install nmap
|
Red Hat/Fedora/CentOS - Install NMAP |
Mac - Install NMAPbrew install nmap iproute2mac
|
Now you need to know your IP range to do a proper scan
View IP Range - Option 2ip addr show | grep inet | grep - v "inet6" | sed "s/^[ \t]*//" | cut -d " " -f2 | grep - v "127.0.0.1/8"
|
nmap -sP 192.168.1.0 /24
nmap 192.168.1.2
nmap 192.168.1.1 192.168.1.2 192.168.1.3
nmap 192.168.1.0 /24 --exclude 192.168.1.10
nmap -F 192.168.1.10 /24
nmap --packet-trace 192.168.1.10
nmap -p 22 192.168.1.10
nmap -p 80,22,21,111
nmap -p "*" 192.168.1.10
|
Originally Posted on March 23, 2017
Last Updated on May 22, 2019
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.
Related