From cc02896bd874b3c598a28e4d11833a5cda75bb04 Mon Sep 17 00:00:00 2001 From: DoI <5291556+denandz@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:08:32 +1200 Subject: [PATCH] Update network-discovery.md Add nmap arp scan and listing current entries in the arp table. --- docs/cheatsheets/network-discovery.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/cheatsheets/network-discovery.md b/docs/cheatsheets/network-discovery.md index 184f4a4..0b8aace 100644 --- a/docs/cheatsheets/network-discovery.md +++ b/docs/cheatsheets/network-discovery.md @@ -54,12 +54,27 @@ MDNS works by using multicast addresses to send DNS queries and responses. When mdns-scan ``` - ## ARP ARP (Address Resolution Protocol) is a networking protocol used to map IP addresses to MAC (Media Access Control) addresses on a local area network (LAN). -* ARP scan +* ARP neighbors + ```ps1 + :~$ ip neigh + 192.168.122.1 dev enp1s0 lladdr 52:54:00:ff:0a:2c STALE + 192.168.122.98 dev enp1s0 lladdr 52:54:00:ff:aa:bb STALE + ``` + +* ARP scan with `nmap` - note, needs root privileges. Check what packets nmap is sending with `--packet-trace` + ```ps1 + :~# nmap -sn -n 192.168.122.0/24 + Starting Nmap 7.93 ( https://nmap.org ) + Nmap scan report for 192.168.122.1 + Host is up (0.00032s latency). + MAC Address: 52:54:00:FF:0A:2C (QEMU virtual NIC) + ``` + +* ARP scan with `arp-scan` ```ps1 root@kali:~# arp-scan -l Interface: eth0, datalink type: EN10MB (Ethernet)