I have an issue with Nmap. I have Kali on my vm installed.
I want to scan the network for live hosts. But when I’m logged as root try nmap -sP 192.168.0.*
Nmap reports that every IP in the subnet 192.168.0.*
was live. But actually, only 4 IPs are online.
Meanwhile, ping command return correct results; I can ping all and it only shows live hosts.
When I run nmap -sP --unprivileged 192.168.0.*
Looks like it works, but it doesn’t return not all live hosts.
Why command n Nmap ap doesn’t work without --unprivileged flag? How can I run it correctly?