Page 1 of 1

nmap, different result?

PostPosted: Jun 12th, '13, 06:45
by janpihlgren
I still use Mageia 2.
I have had this question up earlear or almost the same question and thought that I have had a solution but now discover that I havn't.
When I use a couple of different Raspberry Pi, with no screen or keyboard, in my network I really need a solution to find the internet address from my desktop.
Earlier suggestions will not work. Som because the sugessted program does not exist in Mageia.

When running nmap as user it will only report router and the host that run nmap.
When running nmap as root it sometimes report expecte result. Somtimes report only router and host where running nmap. Sometimes the router, host and an other host at eth0 but not the other hosts wlan0.

When I run nmap at a Raspberry Pi as normal user it alwas show complete result.
Why that differens between the computers? Is there some security reason (which I can't discover or understand) in Mageia?

Re: nmap, different result?

PostPosted: Jun 12th, '13, 14:23
by tom_
janpihlgren wrote:When I run nmap at a Raspberry Pi as normal user it alwas show complete result.
Why that differens between the computers? Is there some security reason (which I can't discover or understand) in Mageia?


probably the difference is not in the computer but in the distro are you using in the RPI

Re: nmap, different result?

PostPosted: Jun 12th, '13, 15:00
by janpihlgren
Why does I not get a complete answer in Mageia?
That's what I want and need.

Re: nmap, different result?

PostPosted: Jun 13th, '13, 01:33
by djennings
You need to tell us what parameters you are supplying to nmap.

Also if you are running a firewall on the RaspPi it may be hiding itself from nmap

Re: nmap, different result?

PostPosted: Jun 13th, '13, 02:48
by janpihlgren
I run nmap as following:
nmap -sP 192.168.1.*

As I know there is no there is no firewall at Raspberry Pi.
If there was some firewall, why will it some times respond? At least with the wlan0 IP-address. And mostly no respond.
Some times there i impossible to use nmap as normal user, only as root.
My opinion is that the problem is at Mageia.

Re: nmap, different result?

PostPosted: Jun 13th, '13, 08:52
by nigelc
Hi,
This is from the nmap manpage:
Most of the scan types are only available to privileged users.. This
is because they send and receive raw packets,. which requires root
access on Unix systems.

It does not always work properly if you scan yourself.

Re: nmap, different result?

PostPosted: Jun 13th, '13, 10:40
by janpihlgren
OK, I accept that. But why will it not work properly when runnig it as root? Report every hosts on the lokal net.

Re: nmap, different result?

PostPosted: Jun 13th, '13, 14:34
by djennings
Maybe I am missing something, but I do not see scan options of -sP listed in the nmap documentation.

For the various methods to discover hosts with nmap see
http://nmap.org/book/man-host-discovery.html

Re: nmap, different result?

PostPosted: Jun 14th, '13, 18:17
by oj
Have you tried 192.168.1.0/24?

Re: nmap, different result?

PostPosted: Jun 15th, '13, 05:26
by janpihlgren
Yes, I tried it now and the result will be the same. does not detect other hosts exept the router.