1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 14:39:03 +00:00
Commit Graph

4632 Commits

Author SHA1 Message Date
david
f9c55c71b6 Fix an error I added in formatScriptOutput. It caused a segmentation
fault when a script produced an empty string as a result.
2010-10-16 02:21:44 +00:00
david
d096dd7626 Update script.db. 2010-10-16 01:59:08 +00:00
david
18157ed081 Merge from /nmap-exp/david/nmap-unconnected. This adds unconnected
socket support to NSE, with updates in scripts and libraries.

o [NSE] Added the ability to send and receive on unconnected sockets.
  This can be used, for example, to receive UDP broadcasts without
  using pcap. A number of scripts have been changed so that they can
  work as prerule scripts to discover services by UDP broadcasting,
  optionally add the discovered targets to the scanning queue:
    - ms-sql-info
    - upnp-info
    - dns-service-discovery
  The nmap.new_socket function can now optionally take a default
  protocol and address family, which will be used if the socket is not
  connected. There is a new nmap.sendto function to be used with
  unconnected UDP sockets. [David, Patrik]
2010-10-16 00:48:44 +00:00
david
20cbbfb014 Add notice of extra binary libraries included in the binary packages. 2010-10-16 00:04:26 +00:00
patrik
1aed246b69 fixed bug in authentication encryption function as reported by Sergey
http://seclists.org/nmap-dev/2010/q4/83

changed the way the library reports "Must change password at next logon"
fixed bug in ms-sql-hasdbaccess that would occur if no rows were returned
[Patrik]
2010-10-15 19:47:54 +00:00
david
ce075558de Include third-part license notices in Windows packages. 2010-10-14 05:22:42 +00:00
david
9720b7b500 Add the license of libgailutil, which is in the Windows package. 2010-10-14 05:10:03 +00:00
david
e3164f757f Add licenses for all the libraries I found in the Frameworks directory of the Mac OS X package. 2010-10-14 04:10:23 +00:00
fyodor
57ce7340a8 add small note about resolveall.nse 2010-10-14 00:39:03 +00:00
kris
e297c8de73 update script name in @output 2010-10-13 03:52:34 +00:00
kris
40a4644055 o [NSE] Improved ssh2's kex_init() parameters: all of the algorithm
and language lists can be set using new keys in the "options" table
  argument. These all default to the same value used before. Also, the
  required "cookie" argument is now replaced by an optional "cookie"
  key in the "options" table, defaulting to random bytes as the RFC
  says the value should be. [Kris]

Only ssh2's fetch_host_key() uses this function, but I'm working on
a script and noticed the design flaw regarding the cookie arg (scripts
shouldn't be required to always pass this when it's specified that its
value should be random).  The rest was added because the default is
just a subset of algorithms offered across implementations.
2010-10-13 03:34:00 +00:00
fyodor
37d3bf21c0 note a done task 2010-10-13 00:08:23 +00:00
kris
8d7d95ba57 update script.db 2010-10-13 00:06:39 +00:00
david
fce6f3e185 Include a directory of licenses in the installer. 2010-10-12 22:55:45 +00:00
david
6232cb13ac Define OPENSSL_FIPS=1. This is required to have EVP_sha256 (used by Nping) when
linking against the 10.4u SDK.
2010-10-12 22:52:56 +00:00
david
ef46d67790 Add a couple more hyperlinks. 2010-10-12 05:06:02 +00:00
david
49d8020ced Add a LICENSES document containing the licenses of the third-party
software used by Nmap and the other tools.
2010-10-12 04:52:07 +00:00
fyodor
f3599c8119 Note that the default install Directory for Windows 7 (maybe Vista too?) is in 'c:\Program Files (x86)' rather than just 'Program Files' 2010-10-12 00:54:03 +00:00
fyodor
c72965c3e5 Add a section 'Script Types and Phases' to discuss and distinguish prerule, host, service, and postrule scripts (definitely has room for improvement). Removed some phase content from the front (introduction) page to keep it clean. Added a link to the Nmap NSE video 2010-10-11 23:08:04 +00:00
fyodor
049e60cabb Oops, I accidentally added that last bug report to the already-done section 2010-10-11 21:57:36 +00:00
fyodor
0b1793dda2 Add a minor nsedoc bug note 2010-10-11 21:40:03 +00:00
david
dba101df69 Update NMAP_MODIFICATIONS to reflect upstream code merges by Jay Fink. 2010-10-11 18:17:23 +00:00
david
f664110479 Update NMAP_MODIFICATIONS for fixed ip6_pack_hdr. 2010-10-07 21:54:19 +00:00
david
6112cb9a43 Fix bugs in ip6_pack_hdr so that the traffic class and flow label are
set correctly.

1. Shift the low-order bits of fc by 20 bits, not 28, because fl is a
   20-bit field.
2. Use a mask in host byte order to mask fl, which is also provided in
   host byte order.
3. Swap | and & in combining fc and fl.
2010-10-07 21:51:28 +00:00
fyodor
80914c6aa8 updates from chat w/David 2010-10-05 22:38:58 +00:00
david
7f6106bc6d Remove duplicate line found by Xavier Sudre. 2010-10-05 01:58:43 +00:00
fyodor
a0285813fc Remove --adler32 option from Nmap quick ref screen. It is still documented in man page, but is too obscure for the quick ref screen IMHO 2010-10-05 00:47:07 +00:00
david
17f5392a72 Add 1 to the number of open ports when calculating RadianlNet node
radiuses, to avoid a math domain error when taking the logarithm of 0.
2010-10-04 15:17:03 +00:00
ron
3cc2257530 Added a new smb script: smb-flood.nse. This denial-of-service script attempts to open too many SMB connections to the server, which can deny legitimate connections from being established. 2010-10-03 23:02:39 +00:00
ron
727661921a Implemented some changes (mostly in error handling) to let smb scripts run in parallel with each other against a single host. Previously, I had used a mutex to prevent that from happening. The changes are summarized in the following post: http://seclists.org/nmap-dev/2010/q3/819, but it comes down to three things:
1) Set the 'vc' ('virtual circuit') id to a non-zero value (if it's 0, the smb server will disconnect all hosts who are already connected)
2) Handle the authentication error NT_STATUS_REQUEST_NOT_ACCEPTED, which indicates that there are too many connected hosts (11 is the default on most versions of Windows, or 10 for the anonymous account). If we see the error, we wait and try again. 
3) Handle the file creation error, NT_STATUS_PIPE_NOT_AVAILABLE, which appears to be caused by a race condition of some sort. It happens when a large number of connections are attempted simultaneously, and is fixed by a short backoff (50ms worked fine, but I'm using 100ms)
The end result is a significant speedup in our SMB checks without losing data.
2010-10-03 22:40:41 +00:00
kris
380cfaba2c For generating ICMP IDs to send, use modulus and addition on a single random
number to guarantee it's nonzero (which some target hosts require) rather
than looping for new random numbers.  

* ICMP ID values are unimportant, as long as they are nonzero
* The original code to get random numbers was exactly duplicated (new variable,
  comment, loop, even whitespace) in the same function, so using a single
  variable set initially (albeit differently) simplifies duplication
2010-10-01 22:45:23 +00:00
david
85d81f76ce Add another parameter to nsp_settrace that allows setting the FILE
stream to write to. It defaults to stdout like before if NULL is
provided. Ncat uses this to write to stderr instead.
2010-10-01 18:12:22 +00:00
david
9ec90e4144 Fix a typo in TODO; Nsock already logs to stdout; what we need is a way
to log to stderr.
2010-10-01 16:54:25 +00:00
david
1723949c05 Revert r20455; I meant to do this in a branch. 2010-10-01 06:29:17 +00:00
david
87ee8343f3 Provide a new nsock_setup_udp function to create a UDP socket without connecting it. Provide an NSE interface to the function. Add broadcast.nse, a script that receives UDP broadcasts with an unconnected socket. 2010-10-01 06:26:22 +00:00
bmenrigh
df99409651 The dominoconsole match is too general and can match things that it
shouldn't.  Also, because of the use of ([...]*), captures can be too
long to fill into the template.  This change forces hostname and
domain name to be non-empty.  This match should be made more specific
but without example content any changes would involve guessing.
2010-09-30 23:14:57 +00:00
fyodor
c182e7291f Add a task for adding CPE to OS detection. It isn't urgent, but something we're probably going to want to do at some point, assuming CPE retains its current momentum 2010-09-30 22:37:19 +00:00
djalal
9c132cd72f Remove unused variable. 2010-09-30 19:00:25 +00:00
fyodor
0739717ca7 some improvements sent in by Fei Yang 2010-09-30 18:10:08 +00:00
david
60636135a2 Fix whitespace in dns-zone-transfer.nse. 2010-09-30 17:05:12 +00:00
david
e7fc9c4c5f Change " \n" to just "\n" where appropriate in NSE. Leading newlines are
no longer removed from script output.
2010-09-30 05:03:39 +00:00
david
fe55182068 Remove the stripping of newlines from the beginning of script output. 2010-09-30 05:03:03 +00:00
david
9d57567b62 Format script output without using sctring replacement. This fixes the case when the last legitimate occurrence of "| " in the output would get replaced with "|_". 2010-09-29 23:14:12 +00:00
david
3927d53e00 Simplify get_script_args and remove the deprecation warning. 2010-09-29 19:29:09 +00:00
david
ae9c5d6922 Use args of the form dns-zone-transfer.domain instead of dnszonetransfer.domain
in dns-zone-transfer.nse. Keep the old forms as undocumented aliases.
2010-09-29 18:57:07 +00:00
david
82ec5be065 Assume that any user-provided liblua is recent enough when cross-compiling.
That this was a problem was reported by Nuno Gonçalves.
2010-09-29 16:09:26 +00:00
david
3032368934 Update to the latest config.guess and config.sub from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree.
2010-09-29 04:31:24 +00:00
kris
ede2a10048 remove a stale comment 2010-09-29 02:07:41 +00:00
david
da5a9ecc52 Fix some whitespace. 2010-09-28 22:30:48 +00:00
david
7dcd478487 Put nat-pmp-info.nse in the "default" category. Let the portrule match
the service "nat-pmp". Set the service name "nat-pmp" on success.
2010-09-28 22:30:18 +00:00