> 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/ar/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 Open" || echo "[-] HTTP Closed"
```

## منافذ متعددة (SSH، HTTP، HTTPS)

أمر بسيط لاختبار قائمة من المنافذ:

```bash
for port in 22 80 443; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Port $port Open" || echo "[-] Port $port Closed"
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 Open on $ip" || echo "[-] SSH Closed on $ip"
done
```

## حلقة لمسح نطاق من المنافذ

لمسح منافذ جهاز ضمن نطاق محدد:

```bash
for port in {20..30}; do
  echo '' > /dev/tcp/192.168.1.1/$port && echo "[+] Port $port Open" || echo "[-] Port $port Closed"
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 Open" || echo "[-] $ip:$port Closed"
  done
done
```

## برنامج نصي متقدم لتشخيص شبكة

أنشئ برنامجًا نصيًا صغيرًا لمسح المنافذ على هدف وحفظ النتائج في ملف:

```bash
#!/bin/bash

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

echo "Scanning $target..." > $output
for port in {1..1024}; do
  if echo '' > /dev/tcp/$target/$port 2>/dev/null; then
    echo "[+] Port $port Open" | tee -a $output
  else
    echo "[-] Port $port Closed" >> $output
  fi
done
echo "Scan completed. Results saved in $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/ar/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.
