1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-19 14:09:02 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
david
b6d83499ef Fix nmap-os-db device type typos. 2010-04-26 15:07:24 +00:00
david
f06175d3aa All 77 OS corrections. 2010-04-26 15:02:51 +00:00
patrik
242bfadfef o [NSE] Improved error handling and reporting with patch from Djalal Harouni. [Patrik] 2010-04-25 18:44:21 +00:00
robert
fafbf5c704 Removed a duplicate require for stdnse. 2010-04-25 17:35:54 +00:00
robert
f5e3cee4ac Simplified call to WinPcap installer during silent installs, now that the installation directory is no longer required (our WinPcap installer handles it all internally). 2010-04-24 20:48:57 +00:00
daniel
8e25327a68 Adding my area of work to the committers file. 2010-04-24 13:08:11 +00:00
fyodor
3f5682af48 Fix a typo 2010-04-24 06:44:56 +00:00
batrick
148fa94265 whitespace/formatting consistency 2010-04-24 03:29:29 +00:00
david
e99a0802f2 The last 300 or so OS submissions. 2010-04-24 00:57:43 +00:00
fyodor
f5409db83e Added a list of current Nmap committers to make it easer to keep track of who is who, especially for people reading nmap-svn 2010-04-23 22:30:57 +00:00
david
8bf66e13bc 200 OS submissions. 2010-04-23 20:46:22 +00:00
fyodor
c4ea122223 slight reorder 2010-04-23 08:13:06 +00:00
fyodor
543ad818ff remove an extra blank line 2010-04-23 08:05:06 +00:00
patrik
71ca5cceba o [NSE] Improved error handling and reporting and re-designed communication
class in RPC library with patch from Djalal Harouni. [Patrik]
2010-04-22 20:25:38 +00:00
david
c0456bb22e 200 OS sumbissions. 2010-04-22 16:32:44 +00:00
david
c70de095bb Add a comment to a service probe that came up in OS integration. 2010-04-22 16:32:32 +00:00
david
73fbf15ef5 Move $(DEFS) from CXXFLAGS to CPPFLAGS. This is to get -DHAVE_CONFIG_H into the
flags when making makefile.dep. Without this, making makefile.dep fails on
OpenSlaris because it can't find <pcre.h>. With HAVE_CONFIG_H it knows to look
in <pcre/pcre.h>.
2010-04-22 04:34:35 +00:00
fyodor
ea1e95aea6 It would be nice if the executable installer had command-line options for unsetting some of the checkboxes (mostly needed for silent mode usage) 2010-04-22 02:20:43 +00:00
fyodor
84c97b9dd6 Improve the list by mixing in some data sent by Solar Designer. 2010-04-21 21:57:33 +00:00
david
4afd4f45ea 200 OS submissions. 2010-04-21 21:25:05 +00:00
david
8923f2d48b 200 more OS submissions. 2010-04-21 18:30:06 +00:00
david
4ac98563ab Upgrade our included libpcap to 1.1.1. 2010-04-21 04:39:45 +00:00
fyodor
e34bd54d68 Add a couple Zenmap ideas suggested by Norris Carden 2010-04-20 23:24:54 +00:00
david
34a6753f73 Add a check to see if the libpcap library needs and has a workaround for the
BPF_TIMEVAL BIOCSRTIMEOUT bug that affects OS X 10.6. If the size of the
parameter to the BIOCSRTIMEOUT ioctl is sizeof(struct timeval) we assume the
workaround is not needed (most platforms). If they are unequal, we assume that
version 1.1.0 or later has a workaround.
2010-04-20 23:22:48 +00:00
fyodor
11c143327f note a couple done tasks 2010-04-20 23:20:24 +00:00
david
701fe380f8 Move the libpcap version number check into acinclude.m4, call it
PCAP_IS_SUITABLE.
2010-04-20 22:02:10 +00:00
david
49e6ad8560 200 OS submissions. 2010-04-20 17:47:23 +00:00
david
af678e3f2a Another 100 OS submissions. 2010-04-19 23:16:17 +00:00
david
a2b7e309ce With --with-libpcap=included, link driectly against libpcap/libpcap.a instead
of adding -Llibpcap/ -lpcap to LDFLAGS. The latter, at least on OS X, still
links dynamically against the system installation of libpcap. This is
consistent with how --with-libpcre=included works.
2010-04-19 20:09:58 +00:00
david
89ea71e792 Add the libpcap merge from r17349 to NMAP_MODIFICATIONS. 2010-04-19 19:39:04 +00:00
david
dedbb7f6ee Merge commit 43acbb77a8e0b3346b574b3e28793de2d6985e69 from libpcap
upstream (git://bpf.tcpdump.org/libpcap). This is a workaround for the
BIOCSRTIMEOUT bug in 10.6, 10.6.1, and 10.6.3 that doesn't work for
non-integer timeouts. A symptom of being affected by the bug is Nmap
haning forever at the first call to pcap_next. 10.6.2 was somehow not
affected.

This alone still doesn't solve the problem; I still have to make the
default --with-libpcap=included for 64-bit OS X.

The source comment is informative:
/*
 * XXX - Mac OS X 10.6 mishandles BIOCSRTIMEOUT in 64-bit userland - it
 * takes, as an argument, a "struct BPF_TIMEVAL", which has 32-bit
 * tv_sec and tv_usec, rather than a "struct timeval".
 *
 * If this platform defines "struct BPF_TIMEVAL", we check whether the
 * structure size in BIOCSRTIMEOUT is that of a "struct timeval" and, if
 * not, we use a "struct BPF_TIMEVAL" rather than a "struct timeval".
 * (That way, if the bug is fixed in a future release, we will still do
 * the right thing.)
 */

commit 43acbb77a8e0b3346b574b3e28793de2d6985e69
Author: Guy Harris <guy@alum.mit.edu>
Date:   Sun Oct 11 11:05:46 2009 -0700

    Work around an annoying Snow Leopard BPF bug that causes sub-second
    timeouts not to work in 64-bit userland code (Snow Leopard's GCC builds
    64-bit by default on 64-bit machines).
2010-04-19 19:22:01 +00:00
david
0a22176263 Here are about 100 OS submissions. 2010-04-19 18:02:29 +00:00
david
e9fc299fea Fix a typo in an error message, also provide more information. 2010-04-19 18:01:37 +00:00
jah
cb0f4a6134 Add some special use IPv4 addresses to isPrivate which are described in RFC 5736
and RFC 5737, published in Jan 2010. Improve performance of isPrivate for IPv4
addresses by using ip_in_range less frequently. Add an extra return value to
isPrivate - when the first return value is true, the second return value will
now be a string representing the special use assignment in which the supplied
address is located.
2010-04-18 18:55:30 +00:00
ron
cb60803ad1 Fixed a couple bugs in the smb-* scripts involving undeclared variables. These only cropped up if the guest/anonymous accounts were disabled, which I'd never seen before. 2010-04-18 13:43:27 +00:00
david
3915ed94e4 Remove explicit timelimit checking from ms-sql-brute, pgsql-brute,
mysql-brute, ldap-brute, and afp-brute. The unpwdb library does this
automatically now.
2010-04-16 02:11:12 +00:00
david
84d99961a9 Add a missing return in unpwdb.timelimit. 2010-04-16 01:52:28 +00:00
david
0e7e3b90ca Make an unqualified number stand for seconds, not milliseconds, in
tval2msecs and tval2secs. This affects the following options:
  Nmap:
    --host-timeout
    --max-rtt-timeout --min-rtt-timeout --initial-rtt-timeout
    --scan-delay --max-scan-delay
    --stats-every
  Ncat:
    -d --delay
    -i --idle-timeout
    -w --wait
  Nping:
    --delay
    --host-timeout
    --icmp-orig-time --icmp-recv-time --icmp-trans-time
Some sanity checks have been added when it looks like someone is using
the old default of milliseconds. For example,

$ ./nmap --host-timeout 10000
The default unit for --host-timeout is seconds (since April 2010), so your time of "10000" is 2.8 hours. If this is what you want, use "10000s".
QUITTING!

$ ./nmap --scan-delay 1000
The default unit for --scan-delay is seconds (since April 2010), so your time of "1000" is 16.7 minutes. Use "1000ms" for 1000 milliseconds.
QUITTING!

Times with a unit are always taken at face value and will avoid the
error message.

See http://seclists.org/nmap-dev/2010/q2/159 for discussion.
2010-04-16 00:38:51 +00:00
david
6940096a27 Use atoi to parse the argument to --max-os-tries, not tval2msecs. The
latter would allow you to do this:

$ nmap --max-os-tries 1s localhost
Bogus --max-os-tries argument specified, must be between 1 and 50 (inclusive)
QUITTING!

Because the "1s" became 1000.

atoi isn't right for option parsing because it doesn't catch errors, but
it's what the rest of the option parsing code uses.
2010-04-15 22:42:13 +00:00
david
dc03a70c79 Fix some NSEDoc. Some libraries had @copyright and @author right at the
top of the first comment, so the entire description got stuffed into the
@author field. I also discovered a limitation in the NSEDoc parser: the
first non-empty line following the first --- comment must be the
"module" call, or else the block isn't recognized as belonging to a
module. This was preventing @args from appearing in certain libraries.
Djalal Harouni told me about this.
2010-04-15 19:21:13 +00:00
david
f3a989f989 Use safe_realloc in XML escape. 2010-04-15 02:18:58 +00:00
fyodor
c73921017d Update after chat w/David 2010-04-14 22:15:35 +00:00
david
859ef5ecaf Merge r17202:17298 from /nmap-exp/david/nmap-xml. This brings in
structured XML output, automatic closing of XML elements on error, and
inclusion of error messages in XML output.
2010-04-14 01:05:51 +00:00
david
62955f75e6 Add to CHANGELOG:
o [NSE] Scripts that take an argument for a time duration can now have
  the duration be a number followed by a unit, like other times in
  Nmap. For example, 10m for 10 minutes. The units understood are ms
  for milliseconds, s for seconds, m for minutes, and h for hours.
  Seconds are the default if no unit is specified. The new function
  stdnse.parse_timespec does the parsing of these formats. The
  qscan.delay script argument, which formerly interpreted its argument
  as being in milliseconds, now defaults to seconds; append "ms" to
  continue using the same numbers. [David]
2010-04-13 23:51:41 +00:00
david
a6e014d42e Change these script arguments to use stdnse.parse_timespec:
qscan.delay
dns-fuzz.timelimit
mssql.timelimit
A side effect is that the default units for qscan.delay are seconds, not
milliseconds. 0 is now the magic value to disable the time limit in
dns-fuzz.
2010-04-13 23:09:23 +00:00
david
68186c2007 Use parse_timespec in unpwdb.lua. 2010-04-13 20:01:38 +00:00
david
b7428619cf Add a stdnse.parse_timespec function. 2010-04-13 17:06:34 +00:00
david
c63e35bc2d Give names to some Windows ports that are in the top 1000, from the list
at http://support.microsoft.com/kb/832017#5. This list was mentioned by
Stephen Kleine.
2010-04-13 15:19:35 +00:00
kris
f51f1b0154 Add "username" and "password" script args to ftp-bounce.nse
It has scoped args in the straight form of "ftp-bounce.<arg>" which is
apparently how this works now (at least what other scripts seem to use) instead
of using actual subtables like in http://seclists.org/nmap-dev/2008/q2/567
2010-04-13 05:13:49 +00:00
david
a34a91f9c5 Add an @output section to auth-spoof.nse contributed by Brandon Enright. 2010-04-13 02:36:56 +00:00