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

# Scan réseau manuel

{% hint style="info" %}
Ce document détaille les techniques de scan réseau manuel sans outils automatisés comme Nmap. Vous apprendrez à utiliser des commandes simples et efficaces (comme `/dev/tcp`, `ping`, `netcat`, etc.) pour identifier les hôtes actifs, vérifier les ports ouverts et diagnostiquer les services sur un réseau. Idéal pour comprendre les bases du diagnostic réseau et personnaliser vos analyses selon vos besoins.
{% endhint %}

## Port spécifique (HTTP - port 80)

```bash
echo '' > /dev/tcp/192.168.1.1/80 && echo "[+] HTTP Ouvert" || echo "[-] HTTP Fermé"
```

## Plusieurs ports (SSH, HTTP, HTTPS)

Une commande simple pour tester une liste de ports :

```bash
for port in 22 80 443; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Port $port Ouvert" || echo "[-] Port $port Fermé"
done
```

## Liste d'IP et port unique

Pour vérifier si un port donné (par exemple, 22) est ouvert sur plusieurs 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 Ouvert sur $ip" || echo "[-] SSH Fermé sur $ip"
done
```

## Boucle pour analyser une plage de ports

Pour analyser les ports d'une machine sur une plage spécifique :

```bash
for port in {20..30}; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Port $port Ouvert" || echo "[-] Port $port Fermé"
done
```

## Service sur plusieurs IP et ports

Pour tester un ensemble d'IP et de plusieurs ports :

```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 Ouvert" || echo "[-] $ip:$port Fermé"
  done
done
```

## Script avancé pour diagnostiquer un réseau

Créez un petit script pour analyser les ports d'une cible et enregistrer les résultats dans un fichier :

```bash
#!/bin/bash

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

echo "Analyse de $target..." > $output
for port in {1..1024}; do
  if echo '' > /dev/tcp/$target/$port 2>/dev/null; then
    echo "[+] Port $port Ouvert" | tee -a $output
  else
    echo "[-] Port $port Fermé" >> $output
  fi
done
echo "Analyse terminée. Résultats enregistrés dans $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/fr/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.
