Some of you guys know a lot more about networking than me.
I haven't had a LAN setup for quite a long time, have just used my phone as a hotspot.
I got out my TOTOLINK router, and plugged in two computers via ethernet, with wifi WAN to my phone.
It works ok, get Internet access from both computers.
This command is supposed to report everything in the local network:
Code: Select all
# arp-scan --localnet
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.9 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
4 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9: 256 hosts scanned in 1.964 seconds (130.35 hosts/sec). 0 responded
Going back a couple of years, when I had the LAN setup, it did work. From the arp-scan man page, this is an example:
Code: Select all
# arp-scan --localnet
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.4 with 8 hosts (http://www.nta-monitor.com/tools/arp-scan/)
10.0.84.179 00:02:b3:63:c7:57 Intel Corporation
10.0.84.177 00:d0:41:08:be:e8 AMIGO TECHNOLOGY CO., LTD.
10.0.84.180 00:02:b3:bd:82:9b Intel Corporation
10.0.84.181 00:02:b3:1f:73:da Intel Corporation
4 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.4: 8 hosts scanned in 0.820 seconds (9.76 hosts/sec). 4 responded
I know that nmap can also do ARP scans, so I ran this, and it does work:
Code: Select all
# nmap -PR -sn 192.168.1.5/24
Starting Nmap 7.80 ( https://nmap.org ) at 2022-11-15 21:26 +08
Nmap scan report for 192.168.1.1
Host is up (0.00019s latency).
MAC Address: F4:28:53:78:BD:20 (Zioncom Electronics (Shenzhen))
Nmap scan report for 192.168.1.4
Host is up (0.00015s latency).
MAC Address: 00:24:21:5C:B2:AF (Micro-star Int'l)
Nmap scan report for 192.168.1.5
Host is up.
Nmap done: 256 IP addresses (3 hosts up) scanned in 2.25 seconds
...yes, that information is correct, 192.168.1.1 is the router, 192.168.1.4 is the other computer.
I got the info how to use nmap from here:
https://tryhackme.com/room/nmap01
So, the question is, what is wrong with arp-scan?
It used to work, what has gone wrong?
If you have a LAN, does arp-scan work for you?