Commandes utiles pour un scan réseau
Rechercher les hôtes actifs :
1% nmap -sn 192.168.1.0/24
2Starting Nmap 7.94 ( https://nmap.org ) at 2023-09-10 16:25 CEST
3Nmap scan report for 192.168.1.12
4Host is up (0.0043s latency).
5Nmap scan report for 192.168.1.73
6Host is up (0.11s latency).
7Nmap scan report for 192.168.1.75
8Host is up (0.00076s latency).
9Nmap scan report for 192.168.1.105
10Host is up (0.00041s latency).
11Nmap scan report for 192.168.1.110
12Host is up (0.00064s latency).
13Nmap scan report for 192.168.1.121
14Host is up (0.0037s latency).
15Nmap done: 256 IP addresses (6 hosts up) scanned in 37.62 seconds
16
17Consultation de la table arp (= correspondance ip => mac) et résolution du nom de la machine
18
19```bash
20% arp -a
21? (169.254.88.45) at 4c:20:b8:e1:f9:73 on en0 [ethernet]
22iphone-de-guillaume.local (169.254.212.106) at c6:14:11:75:91:23 on en10 [ethernet]
23? (169.254.255.255) at (incomplete) on en0 [ethernet]
24? (192.168.1.0) at ff:ff:ff:ff:ff:ff on en0 ifscope [ethernet]
25? (192.168.1.11) at c8:9e:43:98:20:dc on en0 ifscope [ethernet]
26? (192.168.1.12) at b0:b9:8a:53:34:32 on en0 ifscope [ethernet]
comments powered by Disqus