+5 votes
61 views
Scan Local Network Mac | NMAP

in VPNandRouting by (552k points)
reopened | 61 views

1 Answer

+3 votes
Best answer

How to scan a local network with Nmap on macOS

There are thousands of tasks that we can carry out in macOS and some are more delicate than others, one of these is the possibility of performing a scan of the local network in order to detect intruders, find out which computers are on the local network and carry out perform management tasks..

 

 

To accomplish this task, we have the Nmap command.

 

Nmap (Network Mapper) has been developed as a free and open source utility with which it is possible to detect networks or carry out security audits on network infrastructures, although the initial objective of Nmap was to scan large networks, it is also we can use for scanning in small networks..

 

nmap
With Nmap it is possible:
  • Discover networks and network inventory
  • Carry out service update schedules
  • Run real-time host or service uptime monitoring
  • Perform security audits
  • Run it on Linux, Microsoft Windows, FreeBSD, OpenBSD, Solaris, IRIX, Mac OS X, HP-UX, NetBSD, Sun OS operating systems
  • It is possible to map IP filter networks, firewalls, routers using port scanning (TCP and UDP), detect operating systems, version detection, ping sweeps, etc.

 

nmap hits
By using Nmap it is possible to have access to:
  • operating systems in use
  • Packet Filters and Active Firewalls
  • Hosts with live status on the local network
  • Services with name and version of the application used at that moment

 

TechnoWikis will explain the process to scan a local network with Nmap in macOS.

 

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

 

How to scan a local network with Nmap on macOS

 

Step 1

The first thing will be to open the terminal and install Nmap with the command:
 brew install nmap 
image

 

Step 2

There it will start downloading the necessary plugins:

 

image

 

Step 3

The installation process will continue:

 

image

 

Step 4

At the end we will see the following:

 

image

 

step 5

Run a simple scan to one of the Nmap databases:
 nmap scanme.nmap.org 
image

 

step 6

The scan will start, at the end the following will be displayed:

 

image

 

step 7

There we find:
  • Port number and type
  • real time status
  • Service name

 

It is possible to scan a range of ports with the syntax:

 nmap 192.168.10.0/24 
image

 

step 8

There we will see a complete summary of each device detected on the network with its details.
To find the IP addresses of the computers or routers, run:
 sudo nmap -A scanme.nmap.org 
image

 

The -A parameter forces nmap to scan deeper for more information while hiding the Nmap process on the target..

 

Being a more complete process, it must be executed with privileges (sudo).

 

step 9

To scan the IP address defined for the operating system we will execute:
 sudo nmap -O scanme.nmap.org 
To perform the analysis silently we execute:
 sudo nmap -sS scanme.nmap.org 
image

 

step 10

It is possible to filter the results from nmap to grep in order to get specific results, for example:
 nmap scanme.nmap.org | grep "139 /tcp" 
To list all the devices in the network we execute the following:
 harp 
image

 

We will see as a result the IP and the MAC address in the detected equipment.

 

With Nmap it is possible to have a functional tool for analyzing the local network and accessing comprehensive results.

 


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Feb 10, 2021 in Windows 10 by backtothefuture (552k points) | 172 views
+4 votes
1 answer
asked Jun 22, 2023 in VPNandRouting by backtothefuture (552k points) | 68 views
+3 votes
1 answer
asked Nov 14, 2019 in Linux / Unix by backtothefuture (552k points) | 255 views
+4 votes
1 answer
asked Oct 19, 2023 in WiFiandADSL by backtothefuture (552k points) | 54 views
+4 votes
1 answer
asked Jun 5, 2020 in Android by backtothefuture (552k points) | 401 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users