1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 23:19:03 +00:00
Commit Graph

4860 Commits

Author SHA1 Message Date
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
fyodor
654ba6d0e7 Changes from chat w/David 2010-09-28 21:32:52 +00:00
patrik
0ef84cf443 o [NSE] Added nat-pmp-info script that uses the nat-pmp service to
discover the external IP address of a router. [Patrik]
2010-09-28 19:43:06 +00:00
david
31389d88ce Add a new payload for udp/5351, NAT-PMP external address request. 2010-09-28 19:34:46 +00:00
david
72750b1f2a Fix link for hostmap script. 2010-09-28 19:33:09 +00:00
david
956688774a Add the ability to send UDP probes to firewalk.nse. Patch by Henri Doreau. 2010-09-28 03:25:22 +00:00
kris
f4286b0c80 Adding prerule support to snmp-interfaces.nse and the ability to add the
target host's interface addresses to Nmap's scanning queue.
2010-09-28 02:33:52 +00:00
kris
29e6257541 Add the resolveall prerule script which takes a table of hosts and adds the
resolved addresses to Nmap's target queue.
2010-09-28 02:04:20 +00:00
bmenrigh
5ead386c07 Added a bunch of Apple and Netatalk AFP service matches. There are a
few mystery variations in bytes that don't match up with the
descriptions in the submissions or what users have told me they are
running.  I've done my best to get the OS X versions correct.
Corrections may be required to loosen the strict versioning in this
commit.
2010-09-27 22:00:10 +00:00
david
d98e9b9225 Add tests with query strings and null bytes to http-passwd.nse. This patch is
from Ange Gutek.
2010-09-27 18:58:38 +00:00
david
602a40c2b0 Fix a syntax error caused by reordering array entries. 2010-09-27 18:56:23 +00:00
david
53bd35c9cd Increase the debug level required to print out the http.lua cache size. 2010-09-27 18:51:04 +00:00
david
cd5f41fc91 Add some more payloads to http-passwd.nse (with comments explaining which
servers they affect). Fix a pattern. Patch by Ange Gutek.
2010-09-27 18:10:46 +00:00
djalal
4baeee0dfc Whitespace formatting and some code cleaning. 2010-09-27 13:19:25 +00:00
david
52d1590c84 Add the script argument http-brute.method. This is so you can do
http-brute.method=POST instead of having GET hardcoded in the script.
2010-09-27 01:23:37 +00:00
david
92362b2d24 Move special request body handling out of http.post and into http.generic_request. 2010-09-27 01:21:45 +00:00
david
9f79aad78f Pass the driver_options whenever constructing a driver in brute.lua. This could
be required, for example, when running the check method.
2010-09-27 01:20:52 +00:00
tomsellers
c974a51d07 Single line update to correct spelling error in service field.
shoutcase => shoutcast
2010-09-26 19:27:45 +00:00
tomsellers
04e0b3b4f6 Two modifications to APC PowerChute detection. One is to comment
out a false positive that is likely java-rmi.  The other is to 
add an additional version to a version label.
2010-09-26 15:51:00 +00:00
tomsellers
6b75d40ae7 Fixed a few spelling errors and 1 consistency issue in the
device labels in nmap-service-probes
2010-09-26 13:15:45 +00:00
djalal
769db9823a o Added the debug level to some print_debug() functions that were missing this argument.
o Create the mutex in the RpcInfo() function before the connect call, to prevent some rare race conditions that can cause one of the running rpc and nfs scripts to fail. This mutex is used to cache the portmapper program list in the registry, to reduce the number of connections and RPC DUMP procedure calls.
o whitespace formatting.
2010-09-26 12:55:05 +00:00
djalal
85030874ea Fix a bug that prevents Nmap to compile on systems that lacks OpenSSL. This patch was contributed by Patrik Karlsson. 2010-09-26 10:43:32 +00:00
tomsellers
594e2dcacc Add 3 http service detection fingerprints:
Rapidsite/Apa (customized Apache http)
 IBM HTTP Server using mod_jk
 RG4000 Access Control Gateway (limited info)

 The first two had existing fingerprints that were
 were similar but that matched version information 
 that was not always present or had a different 
 modules (PHP vs mod_jk).  - Tom
2010-09-26 04:13:21 +00:00