Nmap Development mailing list archives

[Bug Report] Host order becoming important when using r00t


From: Jay Bosamiya <jaybosamiya () gmail com>
Date: Sun, 27 Jul 2014 21:21:23 +0530

Hi All!

Just noticed this bug when testing: host order becomes important when
using root.

To reproduce the bug: try running "sudo nmap scanme.nmap.org localhost
-sn" and "sudo nmap localhost scanme.nmap.org -sn".

Logically, both should give the same result (except for ordering of
hosts in output). However, the first command works perfectly (shows both
hosts up), and the second commands takes a lot of time followed by
showing scanme.nmap.org as down.

For reference, the output for both commands with -d9 is at [1] and [2].
(Run with latest svn trunk).

Seems like the problem lies in some probes getting no response (in the
second ordering).

Another interesting thing is that this problem comes up only when
running as root (either through sudo, or through root directly).

I haven't tried tracing this bug since I'm currently working on the
--ignore-after option.

If anyone figures out why this happens or wants to take this up, you're
welcome to work on it. :)

Cheers,
Jay

Links:
[1] http://pastebin.com/fP9xW4iw
[2] http://pastebin.com/1HUr8whT
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: