Aller au contenu

Découverte d'hôtes

Techniques de découverte d'hôtes actifs sur un réseau : ping sweep en Bash et PowerShell, ainsi que les options Nmap dédiées (-sn). Première étape de cartographie réseau avant tout scan de ports approfondi.

Ping Sweep Linux

for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done

Ping Sweep Windows

for /L %i in (1,1,255) do @ping -n 1 -w 200 192.168.1.%i > nul && echo 192.168.1.%i is up.

Nmap

nmap -sn 192.168.1.0/24