2

Is there any difference between the technique or algorithm used from Nmap to guess the OS between the option -A and -O? If not, why -O option requires root privileges but -A that it is doing at least the same (and even more) does not require special privileges?

migrated from stackoverflow.com Jul 23 '14 at 20:30

This question came from our site for professional and enthusiast programmers.

2

-A without root privileges does not perform OS detection. The -A option is a shorthand to enable many of Nmap's advanced capabilities:

  • OS detection (-O)
  • service version detection (-sV)
  • NSE script scanning (-sC), and
  • traceroute (--traceroute)

Of these, OS detection and traceroute require root privileges. The other two features (with the exception of just a few NSE scripts) do not require root privileges. When you use the -A option, Nmap will enable as many of these features as it can at your current privilege level, and it will not complain or give an indication that it is leaving any out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy