Add a planned change to OS detection XML output, and note a done task

git-svn-id: https://svn.nmap.org/nmap@28529 e0a8ed71-7df4-0310-8962-fdc924857419
Don't print_iflist until after win_init.

git-svn-id: https://svn.nmap.org/nmap@28530 e0a8ed71-7df4-0310-8962-fdc924857419
Factor out XML osmatch and osclass logging.

git-svn-id: https://svn.nmap.org/nmap@28531 e0a8ed71-7df4-0310-8962-fdc924857419
Make osclass XML elements children of the osmatch element they belong to.

Add the --deprecated-xml-osclass to restore the old output.

git-svn-id: https://svn.nmap.org/nmap@28532 e0a8ed71-7df4-0310-8962-fdc924857419
Typo.

git-svn-id: https://svn.nmap.org/nmap@28533 e0a8ed71-7df4-0310-8962-fdc924857419
Use a header file constant for xmloutputversion.

git-svn-id: https://svn.nmap.org/nmap@28534 e0a8ed71-7df4-0310-8962-fdc924857419
Make osclasses a substructure of osmatch.

git-svn-id: https://svn.nmap.org/nmap@28535 e0a8ed71-7df4-0310-8962-fdc924857419
Let get_best_osmatch keep the original XML ordering.

Ties in accuracy are broken by osmatches' relative position in the XML
file, because Nmap writes results in descending accuracy order.

git-svn-id: https://svn.nmap.org/nmap@28536 e0a8ed71-7df4-0310-8962-fdc924857419
extrainfo shouldn't be a <special field>.

git-svn-id: https://svn.nmap.org/nmap@28537 e0a8ed71-7df4-0310-8962-fdc924857419
Fixed a bug reported by Josh Greenwood that would incorrectly detect a host having IP
forwarding enabled if the scanned host was the same as the probe target.


git-svn-id: https://svn.nmap.org/nmap@28538 e0a8ed71-7df4-0310-8962-fdc924857419
o [NSE] Added the Apache JServer Protocol (AJP) library and the scripts
  ajp-methods, ajp-headers and ajp-auth. [Patrik Karlsson]


git-svn-id: https://svn.nmap.org/nmap@28539 e0a8ed71-7df4-0310-8962-fdc924857419
o [NSE] Added the script broadcast-tellstick-discover, which discovers Telldus
  Technologies TellStickNet devices on the LAN. [Patrik Karlsson]


git-svn-id: https://svn.nmap.org/nmap@28540 e0a8ed71-7df4-0310-8962-fdc924857419
Added IP information to the returned result and added support for collecting multiple
responses.


git-svn-id: https://svn.nmap.org/nmap@28541 e0a8ed71-7df4-0310-8962-fdc924857419
add a feature creeper task idea for resolving compile warnings

git-svn-id: https://svn.nmap.org/nmap@28542 e0a8ed71-7df4-0310-8962-fdc924857419
Use LIFC_UNDER_IPMP when enumerating Solaris interfaces.

An IPMP interface is a special kind of interface made up of other
interfaces. The other interfaces are hidden by default unless this flag
is passed to ioctl(SIOCGLIFCONF). This allows me to scan over an IPMP
interface in a simple setup.


git-svn-id: https://svn.nmap.org/nmap@28543 e0a8ed71-7df4-0310-8962-fdc924857419
Adds http-vuln-cve2012-1823.nse - This script detects PHP-CGI installations that are vulnerable to CVE-2012-1823. This vulnerability is critical and it allows attackers to retrieve source code and execute code remotely.

git-svn-id: https://svn.nmap.org/nmap@28545 e0a8ed71-7df4-0310-8962-fdc924857419
Small patch to rdp-vuln-ms12-020.nse 

Windows resets the connection if we try to reconect too fast to the same port after doing a SYN scan and not completing the handshake. In my tests, sleep values above 0.1s prevent the connection reset so it's set to 0.2 .

git-svn-id: https://svn.nmap.org/nmap@28546 e0a8ed71-7df4-0310-8962-fdc924857419
Don't use LIFC_UNDER_IPMP if it's not defined.

git-svn-id: https://svn.nmap.org/nmap@28547 e0a8ed71-7df4-0310-8962-fdc924857419
Use a large initial buffer in the call to GetAdaptersAddresses.

GetAdaptersAddresses is supposed to return ERROR_BUFFER_OVERFLOW and set
len to the required size when len is too small. So normally we would
call the function once with a small len, and then again with the longer
len. But, on Windows 2003, apparently you only get ERROR_BUFFER_OVERFLOW
the *first* time you call the function with a too-small len--the next
time you get ERROR_INVALID_PARAMETER. So this function would fail the
second and later times it is called.

So, make the first call using a large len. On Windows 2003, this will
work the first time as long as there are not too many adapters. (It will
still fail with ERROR_INVALID_PARAMETER if there are too many adapters,
but this will happen infrequently because of the large buffer.) Other
systems that always return ERROR_BUFFER_OVERFLOW when appropriate will
enlarge the buffer if the initial len is too short.

git-svn-id: https://svn.nmap.org/nmap@28549 e0a8ed71-7df4-0310-8962-fdc924857419
Typo.

git-svn-id: https://svn.nmap.org/nmap@28551 e0a8ed71-7df4-0310-8962-fdc924857419