Tools & Utility

Nmap

The ultimate network scanning tool for host discovery, port scanning, OS detection, and vulnerability assessment.

#nmap#network#scanning#ports#reconnaissance

Mastering Nmap: The Ultimate Network Scanning Tool

Nmap (Network Mapper) is a powerful, open-source scanner used by pentesters, system administrators, and security professionals.

Why Use Nmap?

āœ” Fast and efficient network scanning āœ” Detect open ports and running services āœ” Fingerprint operating systems and software versions āœ” Evade firewalls and IDS with stealthy techniques āœ” Automate vulnerability detection with NSE

Installation

bash
sudo apt update && sudo apt install nmap -y

Basic Commands

bash
nmap example.com              # Single host
nmap 192.168.1.0/24           # Entire subnet
nmap -p 80,443,22 192.168.1.1 # Specific ports
nmap -p- 192.168.1.1          # All 65535 ports
nmap -A 192.168.1.1           # Aggressive scan

Advanced Techniques

bash
nmap -sS 192.168.1.1  # SYN Stealth Scan
nmap -O 192.168.1.1   # OS Detection
nmap -sV 192.168.1.1  # Version Detection
nmap -f 192.168.1.1   # Fragment packets (evade FW)

NSE Scripts

bash
nmap --script=vuln 192.168.1.1          # Vulnerability scan
nmap --script=smb-enum-shares 192.168.1.1 # SMB shares
nmap --script=ftp-brute -p 21 192.168.1.1 # FTP brute
nmap --script=http-* -p 80,443 example.com # HTTP issues

Export Results

bash
nmap -oN scan.txt 192.168.1.1    # Text
nmap -oX scan.xml 192.168.1.1    # XML
nmap -oG scan.gnmap 192.168.1.1  # Grepable