๐Ÿ›ก๏ธ Want to Master Nmap ? : Check Here

๐Ÿ›ก๏ธ Mastering Nmap: From Basic Scans to Vulnerability Detection

Learn Nmap Commands with Real Examples (Beginner to Intermediate Guide)

Are you new to Nmap or looking to improve your network scanning skills? ๐Ÿ‘จโ€๐Ÿ’ป

In this blog, Iโ€™ll walk you through Nmap basics, useful scanning techniques, and even Nmap scripting for vulnerability detection. This blog complements the video I posted on YouTube channel โ€” if you havenโ€™t seen it yet, check it out for a full walkthrough! ๐ŸŽฅ

๐Ÿ” What is Nmap?

Nmap (Network Mapper) is a powerful open-source tool used for:

– Scanning networks
– Discovering hosts and services
– Detecting open ports ๐Ÿ”“
– Identifying vulnerabilities

๐Ÿงฐ How to Install Nmap

๐Ÿ‘‰ Linux

sudo apt install nmap

๐Ÿ‘‰ Windows

Download the setup from: https://nmap.org/download.html

๐Ÿงช Basic Nmap Commands

โœ… 1. Simple Host Scan

nmap <target-ip>

Example:

nmap 192.168.1.1

๐Ÿ“Œ Scans for open ports on a single host.

โœ… 2. Scan Multiple Hosts

nmap 192.168.1.1 192.168.1.2

Example:

nmap 192.168.1.1-50

๐Ÿ“Œ You can also scan a range.

โœ… 3. Scan an Entire Subnet

nmap 192.168.1.0/24

๐Ÿ“Œ Useful in identifying all live hosts in a local network.

โœ… 4. Aggressive Scan

nmap -A <target-ip>

๐Ÿ“Œ Includes OS detection, version detection, script scanning, and traceroute. โš ๏ธ Can be noisy โ€” use with caution on live systems.

๐Ÿ” Intermediate Level: Nmap Scripting Engine (NSE)

โœ… 5. Script Scan Example

nmap --script vuln <target-ip>

๐Ÿ“Œ Scans the target for common vulnerabilities using default NSE scripts.

โœ… 6. Running Specific Script

nmap --script http-enum <target-ip>

๐Ÿ“Œ Enumerates directories on a web server.

โœ… 7. Running Multiple Scripts

nmap --script "ftp*,http*" <target-ip>

๐Ÿ“Œ Scans using all FTP and HTTP-related scripts.

๐Ÿ“‚ Save Output to File

โœ… 8. Save Scan Result to TXT

nmap -oN result.txt <target-ip>

๐Ÿ“Œ For documentation or reporting purposes.

๐Ÿ–ผ๏ธ Sample Scan Output


Starting Nmap 7.93 ( https://nmap.org ) at 2025-05-23
Nmap scan report for 192.168.1.10
Host is up (0.0040s latency).
Not shown: 996 closed tcp ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https

๐Ÿ”„ Real-World Use Case

Letโ€™s say you want to scan a web server to find possible vulnerabilities:

nmap -p 80,443 --script vuln <target-ip>

๐Ÿ“Œ This scans ports 80 and 443 with vulnerability scripts. Ideal for finding SSL or HTTP misconfigs.

โš ๏ธ Responsible Usage

๐Ÿ›‘ Always get permission before scanning any network you donโ€™t own. Unauthorized scanning is illegal and unethical.

๐Ÿ“š Conclusion

Nmap is more than just a port scanner. With the right knowledge, you can use it to:
โœ”๏ธ Detect services
โœ”๏ธ Identify vulnerabilities
โœ”๏ธ Automate scans
โœ”๏ธ Generate reports

๐Ÿ“ฝ๏ธ Watch the full video here for live demos and deeper explanation:
๐Ÿ‘‰ [Your YouTube Video Link]

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top