nmap scan tool code example
Example 1: nmap list scan
nmap -sL {target netblock(s)} # List Scan nmap which simply enumerates every IP address in the given target netblock(s) and does a reverse-DNS lookup on each.
Example 2: nmap version scan
sudo nmap -sV 127.0.0.1