> 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/ru/reconnaissance/network-manual-scan.md).

# Ручное сетевое сканирование

{% hint style="info" %}
В этом документе подробно рассматриваются ручные методы сканирования сети без автоматизированных инструментов, таких как Nmap. Вы научитесь использовать простые и эффективные команды (например, `/dev/tcp`, `ping`, `netcat`, и т. д.) для выявления активных хостов, проверки открытых портов и диагностики служб в сети. Это идеально подходит для понимания основ сетевой диагностики и настройки ваших анализов в соответствии с вашими потребностями.
{% endhint %}

## Конкретный порт (HTTP — порт 80)

```bash
echo '' > /dev/tcp/192.168.1.1/80 && echo "[+] HTTP открыт" || echo "[-] HTTP закрыт"
```

## Несколько портов (SSH, HTTP, HTTPS)

Простая команда для проверки списка портов:

```bash
for port in 22 80 443; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Порт $port открыт" || echo "[-] Порт $port закрыт"
done
```

## Список IP и один порт

Чтобы проверить, открыт ли заданный порт (например, 22) на нескольких 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 открыт на $ip" || echo "[-] SSH закрыт на $ip"
done
```

## Цикл для сканирования диапазона портов

Чтобы просканировать порты машины в определённом диапазоне:

```bash
for port in {20..30}; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Порт $port открыт" || echo "[-] Порт $port закрыт"
done
```

## Служба на нескольких IP и портах

Чтобы проверить набор IP и несколько портов:

```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 открыт" || echo "[-] $ip:$port закрыт"
  done
done
```

## Продвинутый скрипт для диагностики сети

Создайте небольшой скрипт для сканирования портов на целевом узле и сохранения результатов в файл:

```bash
#!/bin/bash

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

echo "Сканирование $target..." > $output
for port in {1..1024}; do
  if echo '' > /dev/tcp/$target/$port 2>/dev/null; then
    echo "[+] Порт $port открыт" | tee -a $output
  else
    echo "[-] Порт $port закрыт" >> $output
  fi
done
echo "Сканирование завершено. Результаты сохранены в $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/ru/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.
