Nmap {Network Mapper}
“Hello and welcome! This is a brief overview of Nmap, specially tailored for cybersecurity students and beginners who wish to understand its core functions — what Nmap is and the commonly used flags. I hope you find it helpful!”
:: Free and Open-source network scanner used for network discovery and security auditing.
:: It’s a versatile tool used to identify hosts, services, and potential vulnerabilities on a network.
How it Works:
Nmap works by sending specifically crafted packets to target hosts and analyzing their responses. Based on the responses, Nmap can determine the state of ports (open, closed, filtered), the operating system, and other information about the target.
!! TESTERS LOVE THIS TOOL FOR NETWORK PENTESTING MOSTLY !!
Main Functions
- Network Discovery: Nmap helps in identifying live hosts on a network, determining their operating systems, and discovering open ports and running services.
- Security Auditing: It’s widely used for penetration testing, vulnerability scanning, and security auditing to identify potential weaknesses in network configurations.
- Network Mapping: Nmap can create detailed maps of networks, showing the relationships between different devices and services.
“How can we perform targeted scans based on our specific requirements, and what techniques should we use for that?”
— sS: Stealthy & fast port scan….. [Send SYN packets to check if ports are open]
Get Akshat Rajput’s stories in your inbox
Join Medium for free to get updates from this writer.
— sT: TCP connect scan ….. [Full TCP handshake scan, used mostly when -sS didn’t work]
— sU: UDP scan….. [To scan UDP ports, comparatively slow & less reliable]
— sV: Service version detection….. [Detect software versions running on open ports]
— O: Operating System Detection…..
— A: Aggressive Scan….. [Enable OS detection; Version detection; Script running & traceroute]
— T4: Timing template…. [Controls the speed of scanning; Fast & Commonly used]
— p: Port range….. [Specify which port to scan]
— Pn: No Ping….. [Skip host discovery; Treat all hosts as live]
— iL: Input List….. [Read lists of target from file]
— Output Formats: {-oN; -oX; -oG; -oA} [Normal, XML, Grepable, ALL]
How should we utilize these flags effectively with Nmap?
nmap [options/flags] [target]
nmap -sV -sS -sC -A -O [192.168.1.1]
“Nmap is available as a command-line tool and also offers a graphical user interface (GUI) for Windows. It can be downloaded and installed from the following link:”https://nmap.org/download#windows
“For more reference: https://nmap.org/”
— Akshat Rajput (My linkedin profile: https://www.linkedin.com/in/akshat-rajput-133274237?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=ios_app)







