The solution I want to solve is to discover newly connected ip (and preferably mac and vendor) on the local network.
So far I've tried arp-scan and nmap.
I like arp-scan mainly because it's fast and pretty easy to create output from a bash script to a file.
However, it doesn't seem to discover more than one of the connected computers, where there is is actually 3. nmap makes a better job but it's more complex to create the wanted output and it's way slower.
This is run in a bash script (in a loop):
sudo arp-scan --interface=wlan0 --localnet | sed '1, 2d' | head -n -3 > ipDump.lst
The pipes are just for formatting and to print it to a file (ipDump.lst).
I'm quite stuck in only discovering one computer.
My questions:
What I'm I doing wrong with arp-scan?
Is there any other program that fits my needs better?
Is my best solution nmap and if so: how should I configure it to be fast (I don't need port information or any other info) and create output that can pratically be outputed as ip adresses on each row to a file?