Port scanning – the Nmap way
Port scanning is an active information gathering technique in which we will now start dealing with our target directly. Port scanning is an interesting process of information gathering. It involves a deeper search of the target machine. Nmap
is the most powerful and preferred scanner for security professionals. The usage of
Nmap
varies from novice to an advanced level. We will analyze the various scan techniques in detail.
Getting ready
Starting nmap
from Metasploit
is easy. Launch the msf
console and type in nmap
to display the list of scan options that Nmap provides.
msf > nmap
How to do it...
We will analyse four different types of Nmap
scans which can be very helpful during penetration testing. Nmap
provides lots of different modes for scanning the target machine. Here, we will focus on four scan types namely TCP connect scan, SYN stealth scan, UDP scan, and ACK scan. The different scan options of Nmap
can also be combined in a single scan in order to perform...