> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/es/reconnaissance/network-manual-scan.md).

# Escaneo manual de red

{% hint style="info" %}
Este documento detalla técnicas manuales de escaneo de red sin herramientas automatizadas como Nmap. Aprenderá a usar comandos simples y eficaces (como `/dev/tcp`, `ping`, `netcat`, etc.) para identificar hosts activos, comprobar puertos abiertos y diagnosticar servicios en una red. Ideal para comprender los conceptos básicos del diagnóstico de red y personalizar sus análisis según sus necesidades.
{% endhint %}

## Puerto específico (HTTP - puerto 80)

```bash
echo '' > /dev/tcp/192.168.1.1/80 && echo "[+] HTTP Abierto" || echo "[-] HTTP Cerrado"
```

## Varios puertos (SSH, HTTP, HTTPS)

Un comando simple para probar una lista de puertos:

```bash
for port in 22 80 443; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Puerto $port Abierto" || echo "[-] Puerto $port Cerrado"
hecho
```

## Lista de IP y un solo puerto

Para comprobar si un puerto dado (por ejemplo, 22) está abierto en varias IP:

```bash
for ip in 192.168.1.1 192.168.1.2 192.168.1.3; do
  echo '' > /dev/tcp/$ip/22 && echo "[+] SSH Abierto en $ip" || echo "[-] SSH Cerrado en $ip"
hecho
```

## Bucle para escanear un rango de puertos

Para escanear los puertos de una máquina en un rango específico:

```bash
for port in {20..30}; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Puerto $port Abierto" || echo "[-] Puerto $port Cerrado"
hecho
```

## Servicio en varias IP y puertos

Para probar un conjunto de IP y varios puertos:

```bash
for ip in 192.168.1.1 192.168.1.2; do
  for port in 80 443 8080; do
    echo '' > /dev/tcp/$ip/$port && echo "[+] $ip:$port Abierto" || echo "[-] $ip:$port Cerrado"
  hecho
hecho
```

## Script avanzado para diagnosticar una red

Cree un pequeño script para escanear puertos en un objetivo y guardar los resultados en un archivo:

```bash
#!/bin/bash

target="192.168.1.1"
output="scan_results.txt"

echo "Escaneando $target..." > $output
for port in {1..1024}; do
  if echo '' > /dev/tcp/$target/$port 2>/dev/null; then
    echo "[+] Puerto $port Abierto" | tee -a $output
  else
    echo "[-] Puerto $port Cerrado" >> $output
  fi
hecho
echo "Escaneo completado. Los resultados se guardaron en $output."
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/es/reconnaissance/network-manual-scan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
