nmap is in /usr/bin because there are things that the user are allowed to do with nmap, and it is a user runable program. However, if you want to do some of the advanced things, one of which that I can think of is sending a SYN packet, listening for a SYN/ACK, and then not sending the ACK packet back (somehow it tricks some OS's / services so that they don't log that they were nmap'ed), then you need root privileges. I think almost all of the -s options require root privileges. The point being, though, that the user can do a limited number of things with nmap.

    -Bryan


In reply to Re^2: Capturing the output of nmap from within a Perl script by mrborisguy
in thread Capturing the output of nmap from within a Perl script by spaceout

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.