What is Nmap?
Nmap is a free and open-source network scanner created by Gordon Lyon. Nmap is used to discover hosts and services on a computer network by Sending packets and analyzing the responses. Nmap provides a number of features for probing computer networks, including host discovery and service and operating system detection.
Scanning Multiple Targets:
Doing the tutorial from thenewboston<hyperlink> Nmap tutorial,
We’re attempting to scan multiple targets. On the screen below you see
Bucky has 3 ip addresses for his nmap scan:
Scan the entire range of ip addresses for all of the devices on my network:
Scan the entire subnet:
Or can write nmap 10.0.2.* should get same result as above
Make a file and have a list of ip address in it:
1. Make a file called “targets.txt”:
2. Type leafpad “targets.txt”:
3. Type in some Ip address examples:
(I’m using the image that Bucky used since I don’t have many resources avaliable at the moment)
4. Choose the -iL command: which means input lists:
You would get the same results as before
Aggressive/Detailed Scan:
Nmap -A: which means scan aggressively:
Looking at this scan you can see it goes a little further than the previous ones.
You can see what Operating System its running like Linux and it goes much deeper into what the ports show.
Running as Traceroute:
Running for Service:
Running for Service Version:
As you can see in the results of the scan, this time we have a Version column appear.
More Port Scanning Options:
Scan Fewer Ports Fast:
Specify Ports:
Scan Ports By Name:
Scan Every Single Port (Best to do for a company):
Scan & Display Open ports only:
This will scan the 1000 commonly used ports buts its only going to display the open ports. Because if a port is filtered, its most likely not a huge vulnerability.
Saving Scan Results:
Typing -oN will save information to a regular text file, while typing -oX will save it to an xml file. Don’t forget to write the location of file.
If you’re interested in a pdf version of this exercise, click below:
Saturday, November 9, 2019
11:06 PM