Skip to content

Commit ce568cc

Browse files
chore(lang): Update language files
1 parent aaf5026 commit ce568cc

9 files changed

+167
-59
lines changed

_posts/ar/2025-02-07-lan-ip-ar.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
audio: false
2+
audio: true
33
lang: ar
44
layout: post
5-
title: ماسح الشبكة المحلية (IP)
5+
title: ماسح الشبكة (IP)
66
translated: true
77
---
88

9-
هذا البرنامج النصي بلغة بايثون يفحص الشبكة المحلية بحثًا عن عناوين IP نشطة. يستخدم الأمر `ping` للتحقق مما إذا كان المضيف متاحًا، ويستخدم تعدد الخيوط لتسريع عملية الفحص. يحدد إشارة مرور عدد الخيوط المتزامنة لتجنب إثقال كاهل النظام. يأخذ البرنامج النصي عنوان الشبكة (مثل "192.168.1.0/24") كمدخل، ويطبع ما إذا كانت كل عناوين IP في الشبكة تعمل أم لا.
9+
## ماسح عنوان IP للشبكة المحلية
10+
11+
هذا البرنامج النصي بلغة بايثون يمسح شبكة محلية بحثًا عن عناوين IP نشطة. وهو يستخدم الأمر `ping` للتحقق مما إذا كان المضيف متصلاً، ويستخدم تعدد الخيوط لتسريع عملية المسح. ويحدد إشارة مرور عدد الخيوط المتزامنة لتجنب إثقال كاهل النظام. يأخذ البرنامج النصي عنوان الشبكة (مثل "192.168.1.0/24") كمدخل، ويطبع ما إذا كان كل عنوان IP في الشبكة قيد التشغيل أو معطل.
12+
13+
يساعد هذا البرنامج النصي على تحديد الأجهزة الموجودة على الشبكة، مثل جهاز توجيه شبكي من TP-LINK يعمل في وضع الجسر السلكي، من خلال البحث عن عناوين IP النشطة.
1014

1115

1216
```python
@@ -15,12 +19,12 @@ import ipaddress
1519
import threading
1620
import os
1721

18-
MAX_THREADS = 255 # الحد الأقصى لعدد الخيوط المستخدمة
22+
MAX_THREADS = 50 # الحد الأقصى لعدد الخيوط المستخدمة
1923

2024
def is_host_up(host):
2125
"""
22-
يتحقق مما إذا كان المضيف يعمل باستخدام ping.
23-
يرجع True إذا كان المضيف يعمل، و False بخلاف ذلك.
26+
يتحقق مما إذا كان المضيف قيد التشغيل باستخدام ping.
27+
يُرجع True إذا كان المضيف قيد التشغيل، و False بخلاف ذلك.
2428
"""
2529
try:
2630
# -c 1: إرسال حزمة واحدة فقط
@@ -34,7 +38,7 @@ def is_host_up(host):
3438

3539
def scan_ip(ip_str):
3640
"""
37-
يفحص عنوان IP واحد ويطبع حالته.
41+
يمسح عنوان IP واحدًا ويطبع حالته.
3842
"""
3943
if is_host_up(ip_str):
4044
print(f"{ip_str} is up")
@@ -43,7 +47,7 @@ def scan_ip(ip_str):
4347

4448
def scan_network(network):
4549
"""
46-
يفحص الشبكة بحثًا عن المضيفين النشطين باستخدام الخيوط، مع تحديد الحد الأقصى لعدد الخيوط المتزامنة.
50+
يمسح شبكة بحثًا عن مضيفين نشطين باستخدام الخيوط، مع تحديد الحد الأقصى لعدد الخيوط المتزامنة.
4751
"""
4852
print(f"Scanning network: {network}")
4953
threads = []
@@ -66,7 +70,15 @@ def scan_network(network):
6670
thread.join()
6771

6872
if __name__ == "__main__":
69-
network_to_scan = "192.168.1.0/24" # غير هذا إلى شبكتك
73+
network_to_scan = "192.168.1.0/24" # غيّر هذا إلى شبكتك
7074
scan_network(network_to_scan)
7175

7276
```
77+
78+
## تجاوز عناوين IP المحلية
79+
80+
يحدد البرنامج النصي عناوين IP النشطة. للتأكد من الاتصال الصحيح بالشبكة، تأكد من أن إعدادات الوكيل مُهيأة لتجاوز عناوين IP المحلية هذه.
81+
82+
```bash
83+
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.1,localhost,*.local,timestamp.apple.com,sequoia.apple.com,seed-sequoia.siri.apple.com, 192.168.1.0/16
84+
```

_posts/de/2025-02-07-lan-ip-de.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
audio: false
2+
audio: true
33
lang: de
44
layout: post
55
title: LAN-IP-Scanner
66
translated: true
77
---
88

9-
Dieses Python-Skript scannt ein lokales Netzwerk nach aktiven IP-Adressen. Es verwendet den Befehl `ping`, um zu überprüfen, ob ein Host erreichbar ist, und setzt Multithreading ein, um den Scanvorgang zu beschleunigen. Ein Semaphore begrenzt die Anzahl gleichzeitiger Threads, um eine Überlastung des Systems zu vermeiden. Das Skript nimmt eine Netzwerkadresse (z. B. "192.168.1.0/24") als Eingabe entgegen und gibt für jede IP-Adresse im Netzwerk aus, ob sie aktiv oder inaktiv ist.
9+
## LAN IP Scanner
10+
11+
Dieses Python-Skript scannt ein lokales Netzwerk nach aktiven IP-Adressen. Es verwendet den Befehl `ping`, um zu überprüfen, ob ein Host erreichbar ist, und setzt Multithreading ein, um den Scan-Vorgang zu beschleunigen. Ein Semaphore begrenzt die Anzahl gleichzeitiger Threads, um eine Überlastung des Systems zu vermeiden. Das Skript nimmt eine Netzwerkadresse (z. B. "192.168.1.0/24") als Eingabe entgegen und gibt aus, ob jede IP-Adresse im Netzwerk aktiv oder inaktiv ist.
12+
13+
Dieses Skript hilft, Geräte im Netzwerk zu identifizieren, wie z. B. einen TP-LINK Mesh-Router, der im drahtgebundenen Bridge-Modus arbeitet, indem es nach aktiven IP-Adressen sucht.
1014

1115

1216
```python
@@ -15,7 +19,7 @@ import ipaddress
1519
import threading
1620
import os
1721

18-
MAX_THREADS = 255 # Maximale Anzahl zu verwendender Threads
22+
MAX_THREADS = 50 # Maximale Anzahl an Threads
1923

2024
def is_host_up(host):
2125
"""
@@ -24,7 +28,7 @@ def is_host_up(host):
2428
"""
2529
try:
2630
# -c 1: Sendet nur 1 Paket
27-
# -W 1: Warte 1 Sekunde auf eine Antwort
31+
# -W 1: Wartet 1 Sekunde auf eine Antwort
2832
subprocess.check_output(["ping", "-c", "1", "-W", "1", host], timeout=1)
2933
return True
3034
except subprocess.CalledProcessError:
@@ -70,3 +74,11 @@ if __name__ == "__main__":
7074
scan_network(network_to_scan)
7175

7276
```
77+
78+
## Lokale IPs umgehen
79+
80+
Das Skript identifiziert aktive IP-Adressen. Um eine ordnungsgemäße Netzwerkkommunikation sicherzustellen, vergewissern Sie sich, dass die Proxy-Einstellungen so konfiguriert sind, dass diese lokalen IPs umgangen werden.
81+
82+
```bash
83+
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.1,localhost,*.local,timestamp.apple.com,sequoia.apple.com,seed-sequoia.siri.apple.com, 192.168.1.0/16
84+
```

_posts/en/2025-02-07-lan-ip-en.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
---
2-
audio: false
2+
audio: true
33
lang: en
44
layout: post
55
title: LAN IP Scanner
66
translated: false
77
---
88

9+
## LAN IP Scanner
10+
911
This Python script scans a local network for active IP addresses. It uses the `ping` command to check if a host is reachable and employs multithreading to speed up the scanning process. A semaphore limits the number of concurrent threads to avoid overwhelming the system. The script takes a network address (e.g., "192.168.1.0/24") as input and prints whether each IP address in the network is up or down.
1012

13+
This script helps identify devices on the network, such as a TP-LINK mesh router operating in wired bridge mode, by scanning for active IP addresses.
14+
1115

1216
```python
1317
import subprocess
1418
import ipaddress
1519
import threading
1620
import os
1721

18-
MAX_THREADS = 255 # Maximum number of threads to use
22+
MAX_THREADS = 50 # Maximum number of threads to use
1923

2024
def is_host_up(host):
2125
"""
@@ -69,4 +73,12 @@ if __name__ == "__main__":
6973
network_to_scan = "192.168.1.0/24" # Change this to your network
7074
scan_network(network_to_scan)
7175

76+
```
77+
78+
## Bypassing Local IPs
79+
80+
The script identifies active IP addresses. To ensure proper network communication, verify that proxy settings are configured to bypass these local IPs.
81+
82+
```bash
83+
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.1,localhost,*.local,timestamp.apple.com,sequoia.apple.com,seed-sequoia.siri.apple.com, 192.168.1.0/16
7284
```

_posts/es/2025-02-07-lan-ip-es.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
audio: false
2+
audio: true
33
lang: es
44
layout: post
5-
title: Escáner de IP LAN
5+
title: Analizador de IP LAN
66
translated: true
77
---
88

9-
Este script de Python escanea una red local en busca de direcciones IP activas. Utiliza el comando `ping` para comprobar si un host es accesible y emplea multithreading para acelerar el proceso de escaneo. Un semáforo limita el número de hilos concurrentes para evitar sobrecargar el sistema. El script toma una dirección de red (por ejemplo, "192.168.1.0/24") como entrada e imprime si cada dirección IP de la red está activa o inactiva.
9+
## Escáner de IP LAN
10+
11+
Este script de Python escanea una red local en busca de direcciones IP activas. Utiliza el comando `ping` para comprobar si un host es accesible y emplea multithreading para acelerar el proceso de escaneo. Un semáforo limita el número de threads concurrentes para evitar sobrecargar el sistema. El script toma una dirección de red (por ejemplo, "192.168.1.0/24") como entrada e imprime si cada dirección IP de la red está activa o inactiva.
12+
13+
Este script ayuda a identificar dispositivos en la red, como un router mesh TP-LINK que funciona en modo puente cableado, mediante el escaneo de direcciones IP activas.
1014

1115

1216
```python
@@ -15,7 +19,7 @@ import ipaddress
1519
import threading
1620
import os
1721

18-
MAX_THREADS = 255 # Número máximo de hilos a utilizar
22+
MAX_THREADS = 50 # Número máximo de threads a usar
1923

2024
def is_host_up(host):
2125
"""
@@ -43,11 +47,11 @@ def scan_ip(ip_str):
4347

4448
def scan_network(network):
4549
"""
46-
Escanea una red en busca de hosts activos usando hilos, limitando el número de hilos concurrentes.
50+
Escanea una red en busca de hosts activos usando threads, limitando el número de threads concurrentes.
4751
"""
4852
print(f"Escaneando red: {network}")
4953
threads = []
50-
semaphore = threading.Semaphore(MAX_THREADS) # Limita el número de hilos concurrentes
54+
semaphore = threading.Semaphore(MAX_THREADS) # Limita el número de threads concurrentes
5155

5256
def scan_ip_with_semaphore(ip_str):
5357
semaphore.acquire()
@@ -70,3 +74,11 @@ if __name__ == "__main__":
7074
scan_network(network_to_scan)
7175

7276
```
77+
78+
## Omitiendo IPs locales
79+
80+
El script identifica las direcciones IP activas. Para asegurar una comunicación de red adecuada, verifica que la configuración del proxy esté configurada para omitir estas IPs locales.
81+
82+
```bash
83+
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.1,localhost,*.local,timestamp.apple.com,sequoia.apple.com,seed-sequoia.siri.apple.com, 192.168.1.0/16
84+
```

_posts/fr/2025-02-07-lan-ip-fr.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
audio: false
2+
audio: true
33
lang: fr
44
layout: post
55
title: Analyseur d'IP LAN
66
translated: true
77
---
88

9-
Ce script Python analyse un réseau local pour trouver les adresses IP actives. Il utilise la commande `ping` pour vérifier si un hôte est joignable et utilise le multithreading pour accélérer le processus d'analyse. Un sémaphore limite le nombre de threads concurrents pour éviter de surcharger le système. Le script prend une adresse réseau (par exemple, "192.168.1.0/24") en entrée et affiche si chaque adresse IP du réseau est active ou inactive.
9+
## Scanner d'IP LAN
10+
11+
Ce script Python scanne un réseau local pour les adresses IP actives. Il utilise la commande `ping` pour vérifier si un hôte est joignable et utilise le multithreading pour accélérer le processus de scan. Un sémaphore limite le nombre de threads concurrents pour éviter de surcharger le système. Le script prend une adresse réseau (par exemple, "192.168.1.0/24") en entrée et affiche si chaque adresse IP du réseau est active ou inactive.
12+
13+
Ce script permet d'identifier les appareils sur le réseau, tels qu'un routeur maillé TP-LINK fonctionnant en mode pont filaire, en scannant les adresses IP actives.
1014

1115

1216
```python
@@ -15,7 +19,7 @@ import ipaddress
1519
import threading
1620
import os
1721

18-
MAX_THREADS = 255 # Nombre maximal de threads à utiliser
22+
MAX_THREADS = 50 # Nombre maximal de threads à utiliser
1923

2024
def is_host_up(host):
2125
"""
@@ -34,7 +38,7 @@ def is_host_up(host):
3438

3539
def scan_ip(ip_str):
3640
"""
37-
Analyse une seule adresse IP et affiche son statut.
41+
Scanne une seule adresse IP et affiche son statut.
3842
"""
3943
if is_host_up(ip_str):
4044
print(f"{ip_str} est active")
@@ -43,9 +47,9 @@ def scan_ip(ip_str):
4347

4448
def scan_network(network):
4549
"""
46-
Analyse un réseau pour les hôtes actifs en utilisant des threads, en limitant le nombre de threads concurrents.
50+
Scanne un réseau pour les hôtes actifs en utilisant des threads, limitant le nombre de threads concurrents.
4751
"""
48-
print(f"Analyse du réseau : {network}")
52+
print(f"Scan du réseau : {network}")
4953
threads = []
5054
semaphore = threading.Semaphore(MAX_THREADS) # Limite le nombre de threads concurrents
5155

@@ -70,3 +74,11 @@ if __name__ == "__main__":
7074
scan_network(network_to_scan)
7175

7276
```
77+
78+
## Contournement des IP locales
79+
80+
Le script identifie les adresses IP actives. Pour assurer une communication réseau appropriée, vérifiez que les paramètres proxy sont configurés pour contourner ces IP locales.
81+
82+
```bash
83+
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.1,localhost,*.local,timestamp.apple.com,sequoia.apple.com,seed-sequoia.siri.apple.com, 192.168.1.0/16
84+
```

_posts/hant/2025-02-07-lan-ip-hant.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
audio: false
2+
audio: true
33
lang: hant
44
layout: post
5-
title: LAN IP 掃描器
5+
title: 內網 IP 掃描器
66
translated: true
77
---
88

9-
此 Python 腳本掃描本機網絡中的活躍 IP 地址。它使用 `ping` 命令檢查主機是否可達,並使用多線程來加快掃描過程。信號量限制同時運行的線程數量,以避免壓垮系統。腳本以網絡地址(例如,「192.168.1.0/24」)作為輸入,並打印網絡中每個 IP 地址的狀態(正常或關閉)。
9+
## LAN IP 掃描器
10+
11+
這段 Python 腳本掃描本機網絡以尋找活躍的 IP 位址。它使用 `ping` 命令檢查主機是否可達,並使用多線程來加快掃描速度。 訊號量限制同時運行的線程數量,以避免壓垮系統。 腳本接收網絡地址(例如,「192.168.1.0/24」)作為輸入,並列印網絡中每個 IP 位址的狀態(啟用或停用)。
12+
13+
此腳本有助於識別網絡上的設備,例如以線橋模式運作的 TP-LINK 網狀路由器,方法是掃描活躍的 IP 位址。
1014

1115

1216
```python
@@ -15,16 +19,16 @@ import ipaddress
1519
import threading
1620
import os
1721

18-
MAX_THREADS = 255 # 最大同時執行線程數
22+
MAX_THREADS = 50 # 最大線程數
1923

2024
def is_host_up(host):
2125
"""
22-
使用 ping 檢查主機是否正常
23-
如果主機正常則返回 True,否則返回 False。
26+
使用 ping 檢查主機是否啟用
27+
如果主機已啟用,則返回 True,否則返回 False。
2428
"""
2529
try:
26-
# -c 1: 只發送 1 個數據包
27-
# -W 1: 等待 1 秒鐘以接收響應
30+
# -c 1: 只發送 1 個封包
31+
# -W 1: 等待 1 秒以獲取回應
2832
subprocess.check_output(["ping", "-c", "1", "-W", "1", host], timeout=1)
2933
return True
3034
except subprocess.CalledProcessError:
@@ -34,7 +38,7 @@ def is_host_up(host):
3438

3539
def scan_ip(ip_str):
3640
"""
37-
掃描單個 IP 地址並打印其狀態
41+
掃描單個 IP 位址並列印其狀態
3842
"""
3943
if is_host_up(ip_str):
4044
print(f"{ip_str} is up")
@@ -43,11 +47,11 @@ def scan_ip(ip_str):
4347

4448
def scan_network(network):
4549
"""
46-
使用線程掃描網絡中的活躍主機,限制同時運行的線程數。
50+
使用線程掃描網絡以尋找活躍的主機,限制同時運行的線程數。
4751
"""
4852
print(f"Scanning network: {network}")
4953
threads = []
50-
semaphore = threading.Semaphore(MAX_THREADS) # 限制同時執行線程數
54+
semaphore = threading.Semaphore(MAX_THREADS) # 限制同時運行的線程數
5155

5256
def scan_ip_with_semaphore(ip_str):
5357
semaphore.acquire()
@@ -70,3 +74,11 @@ if __name__ == "__main__":
7074
scan_network(network_to_scan)
7175

7276
```
77+
78+
## 跳過本地 IP
79+
80+
此腳本識別活躍的 IP 位址。 為確保正確的網絡通訊,請驗證是否已將代理設置配置為跳過這些本地 IP。
81+
82+
```bash
83+
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.1,localhost,*.local,timestamp.apple.com,sequoia.apple.com,seed-sequoia.siri.apple.com, 192.168.1.0/16
84+
```

0 commit comments

Comments
 (0)