Nmap es un programa de código abierto que sirve para efectuar rastreo de puertos escrito originalmente por Gordon Lyon y cuyo desarrollo se encuentra hoy a cargo de una comunidad. Fue creado originalmente para Linux aunque actualmente es multiplataforma.

1 nmap -sS -P0 -sV -O [dirección]

Donde [dirección] es la IP del servidor/nodo o una subnet.

-sS =escaneo TCP SYN (o escaneo sigiloso)

-P0 =no se envían pings ICMP

-sV =detecta las versiones

-O =se intenta identificar el Sistema Operativo

Otras opciones:

-A =habilita OS fingerprinting y detección de versión

-v =usar dos veces -v para obtener mas detalles

2.- Listar servidores con un puerto especifico abierto:

 

nmap -sT -p 80 -oG – 192.168.1.* | grep open

 

Cambiar el argumento -p por el numero del puerto.

3.- Detectar IP’s activas en una red:

 

nmap -sP 192.168.0.*

Otra opción para subnets es:

nmap -sP 192.168.0.0/24

4.- Hacer ping a un rango de IP’s:

nmap -sP 192.168.1.100-254

 

Nmap acepta una gran variedad de rangos, notación de direcciones, objetivos múltiples, etc.

5.- Encontrar IP’s no usadas en una subnet:

 

nmap -T4 -sP 192.168.2.0/24 && egrep “00:00:00:00:00:00″ /proc/net/arp

6.- Escanear en busca del virus Conficker:

nmap -PN -T4 -p139,445 -n -v –script=smb-check-vulns –script-args safe=1 192.168.0.1-254

 

Reemplazar 192.168.0.1-254 con las IP’s que se quiere escanear.

7.- Escanear red en busca de AP falsos:

 

nmap -A -p1-85,113,443,8080-8100 -T4 –min-hostgroup 50 –max-rtt-timeout 2000 –initial-rtt-timeout 300 –max-retries 3 –host-timeout 20m –max-scan-delay 1000 -oA wapscan 10.0.0.0/8

 

Funciona incluso en grandes redes.

8.- Crear un señuelo durante el escaneo de puertos para evitar ser detectado:

 

sudo nmap -sS 192.168.0.10 -D 192.168.0.2

 

Escanea los puertos del nodo 192.168.1.10 mientras spoofea la IP 192.168.0.2 como nodo atacante (esta IP debe estar activa) así parecerá que el escaneo se ejecuta desde la IP192.168.0.2 (la ip spoofeada). Comprobar los logs en /var/log/secure para comprobar si ha funcionado correctamente.

9.- Listar los registros DNS inversos de una subred:

 

nmap -R -sL 209.85.229.99/27 | awk ‘{if($3==”not”)print”(“$2″) no PTR”;else print$3″ is “$2}’ | grep ‘(‘

 

Este comando hace un reverse DNS lookup en una subred, se crea una lista con las direcciones IP de los registros PTR en la subred indicada. Se puede insertar la subred en notación CDIR (ejemplo: /24 para la Clase C). Puedes agregar “-dns-servers x.x.x.x” después del parámetro “-sL” si quieres realizar el listado sobre un servidor DNS especifico.

10.- Cuántos nodos con Linux y cuántos con Windows hay en una red:

 

sudo nmap -F -O 192.168.0.1-255 | grep “Running: ” > /tmp/os; echo “$(cat /tmp/os | grep Linux | wc -l) Linux device(s)”; echo “$(cat /tmp/os | grep Windows | wc -l) Window(s) devices”

6 Comentarios. Leave new

Definitely imagine that that you stated. Your favorite reason appeared to be on the web the simplest thing to be aware of. I say to you, I certainly get annoyed while folks consider worries that they just do not realize about. You controlled to hit the nail upon the highest and also outlined out the entire thing without having side-effects , people could take a signal. Will probably be again to get more. Thanks| Sherilyn Rodolfo Cristian

Responder

I enjoy looking through a post that will make people think. Also, many thanks for allowing for me to comment! Aurelia Cecilius Belloir

Responder

naturally like your web-site but you have to test the spelling on quite a few of your posts. A number of them are rife with spelling issues and I find it very bothersome to inform the truth then again I will surely come again again. Sammy Arie Lisette

Responder

I like this weblog very much so much fantastic information. Herminia Barbabas Cherey Ebba Geno Neva

Responder

Scanning the country as being a whole, the housing sector seems healthy at the start in the fall buying season, Ms. Nettie Ced Faludi Kattie Boot Gavrila

Responder

Thanks for sharing your info. I really appreciate your efforts and I am waiting for your further write ups thanks once again.| Clarita Orville Chilcote

Responder

Deja un comentario

Tu dirección de correo electrónico no será publicada.

Fill out this field
Fill out this field
Por favor, introduce una dirección de correo válida.
You need to agree with the terms to proceed

Menú
Aceptas el tratamiento de datos.    Configurar y más información
Privacidad