Saltar a contenido

Comandos Nmap

"Clase de la hoja"

########################################################################################################################################################################################################################################################## Copiar todos los comandos
########################################################################################################################################################################################################################################################## Generar PDF seleccionado/button

■/div titulada

Comandos completos de Nmap y flujos de trabajo para el descubrimiento de redes y auditoría de seguridad en todas las plataformas.

Instalación

Linux/Ubuntu

# Package manager installation
sudo apt update && sudo apt install nmap

# Alternative: Download from official source
wget https://releases.nmap.com/latest/nmap-linux.tar.gz
tar -xzf nmap-linux.tar.gz
sudo mv nmap /usr/local/bin/

# Kali Linux
sudo apt install nmap

macOS

# Using Homebrew
brew install nmap

# Using MacPorts
sudo port install nmap

# Manual installation
curl -O https://releases.nmap.com/latest/nmap-macos.pkg
sudo installer -pkg nmap-macos.pkg -target /

Windows

# Using Chocolatey
choco install nmap

# Using Scoop
scoop install nmap

# Using winget
winget install nmap

# Manual download from official website
# Visit https://nmap.com/download

Comandos básicos

Command Description
nmap --help Show help information
nmap --version Display version information
nmap -h <target> Basic scan of target
nmap -v <target> Verbose scan of target
nmap -o <file> Save output to file
nmap -i <input> Read input from file
nmap -p <port> Specify port number
nmap -t <timeout> Set timeout value

Comandos Avanzados

Command Description
nmap -A <target> Aggressive scan mode
nmap -sS <target> Stealth SYN scan
nmap -sU <target> UDP scan
nmap -O <target> OS detection
nmap -sV <target> Version detection
nmap --script <script> Run NSE scripts
nmap -T4 <target> Timing template
nmap -f <target> Fragment packets

Configuración

Command Description
nmap config --list Show current configuration
nmap config --set <key> <value> Set configuration value
nmap config --get <key> Get configuration value
nmap config --unset <key> Remove configuration value
nmap config --global <key> <value> Set global configuration

Casos de uso común

Red Scanning

# Basic port scan
nmap -p 1-1000 192.168.1.1

# Service version detection
nmap -sV -p 22,80,443 target.com

# OS fingerprinting
nmap -O target.com

Evaluación de la vulnerabilidad

# Script scan for vulnerabilities
nmap --script vuln target.com

# Comprehensive scan
nmap -A -T4 target.com

# Save results to file
nmap -oA scan_results target.com

Solución de problemas

Issue Solution
Command not found Ensure nmap is installed and in PATH
Permission denied Use sudo or check file permissions
Connection timeout Check network connectivity and firewall
Invalid syntax Verify command syntax and parameters
Version conflicts Update to latest version or check compatibility

Consejos y trucos

  • Uso nmap --help_ para ayuda específica de comando
  • Compruebe nmap --version_ para verificar la instalación
  • Use la finalización de la pestaña para una entrada de comando más rápida
  • Crear alias para comandos usados con frecuencia
  • Mantenga nmap actualizado a la última versión

Herramientas relacionadas

  • Nmap - Búsqueda de redes y auditoría de seguridad
  • Metasploit - Marco de pruebas de penetración
  • Burp Suite - Pruebas de seguridad de la aplicación web
  • Wireshark - Analizador de protocolo de red

Recursos

-...

Última actualización: 2025-07-05 sometidaeditar en GitHub