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

3106 Commits

Author SHA1 Message Date
fyodor
27b0b2a8c4 Removed all changelog entries from RPM spec files and instead provide the command for obtaining the change logs from svn. That is more authoritative and also relieves us of the obligation to try and keep both changelogs up to date 2009-06-07 04:35:28 +00:00
fyodor
51981c07b1 Regenerated data files with 4.85BETA10 version number; that release is probably still 2-3 days away though, but I'm testing new build rules 2009-06-07 04:26:47 +00:00
fyodor
4bf7955532 I'm experimenting with building RPMs with SSL support 2009-06-07 04:26:06 +00:00
fyodor
4a53444901 Split the release build system from having one make distro rule to three separate ones: make prerelease; make release-tarballs; and make release-rpms 2009-06-07 04:25:48 +00:00
fyodor
1fb2a75809 ideas for improving the release build system 2009-06-07 04:25:00 +00:00
batrick
93b5922a60 [NSE] Set L_NSE to NULL if NSE is closed (close_nse is called).
Currently NSE is only opened and closed once in Nmap so this doesn't actually
fix a visible bug.
2009-06-07 01:31:35 +00:00
batrick
68bf664db6 [NSE] Applied change to remove the old nse_macros.h header file.
Here is a mostly exhaustive list of the changes:

o Removes the SCRIPT_ENGINE_* status defines and replaces the
  instances with regular boolean integer returns or changes the
  procedure to return void. The latter case is better generally because
  the caller ignores any status return (e.g. nmap.cc calling open_nse)
  and/or the procedure raises a fatal error when unsuccessful.

o Moves the SCRIPT_ENGINE_LUA_DIR and the like to the nse_main.h header file.

o Removes the use of the SCRIPT_ENGINE_TRY (there was only one left)
  and thus changes the call to l_dnet_open to a void function called
  directly by luaopen_nsock (in nse_nsock.cc) instead of luaopen_nmap
  (in nse_nmaplib.cc). I felt moving the function was also an
  appropriate (but somewhat unrelated to the intent of the patch) change
  as opening the dnet metatable is very related to opening up the
  nsock library. This confines errors in opening the nsock library, including
  opening the dnet metatable, to the call to luaopen_nsock.

o The FILES and DIRS defines are moved in to nse_fs.h where they are
  more appropriate and localalized.
2009-06-07 01:25:53 +00:00
fyodor
63d0132758 2009-06-06 20:50:32 +00:00
josh
0b078f4af6 Rewrote the port list merge code in validate_scan_lists to be moremaintainable. 2009-06-06 04:33:35 +00:00
josh
8e9c6a0e1f Fixed a bug with in validate_scan_lists where realloc was not called with
sufficient size.
2009-06-06 02:18:18 +00:00
david
1eb18b3143 Use conditional compilation with OPENSSL_VERSION_NUMBER to support a
certain function that is not in OpenSSL before 0.9.7, but is required
for correct operation after 0.9.7. The technique is from Network
Security with OpenSSL, whose code is at http://www.opensslbook.com/code.html
(see ssl/common.c).
2009-06-06 02:13:54 +00:00
david
13b43d0286 Remove unused defines in portlist.h:
#define CONF_NONE 0
#define CONF_LOW 1
#define CONF_HIGH 2
2009-06-06 01:31:58 +00:00
josh
07011cbb99 Made a change to validate_scan_lists to combine port lists when -PA and -PS are
called together when nmap is running as nonroot or using IPv6.
2009-06-06 00:04:31 +00:00
josh
198cb57ea2 Added another case to NmapOps::RawScan() to fix a bug where the "Raw packets
sent..." message would not be displayed.
2009-06-05 04:06:12 +00:00
josh
881fc1777f Changed the default port for UDP probing. Also changed the ICMP id in ICMP
pinging to be a nonzero number.
2009-06-05 03:29:10 +00:00
david
d011afb07c [Ncat] Handling of newlines on Windows has been improved. CRLF is
automatically converted to bare LF when input is from the console, but
not when it is from a pipe or a file. No newline translation is done
on output (it was being done before). This makes it possible to
transfer binary files with Ncat on Windows without any corruption.
2009-06-05 02:30:58 +00:00
fyodor
246344aa08 Minor improvements to an existing item 2009-06-04 21:35:57 +00:00
fyodor
c5fcfefbea Further improvements to the output format. It now always prints the vuln table if an infection is found, but it no longer prints anything for clean machines unless verbosity is 2+ 2009-06-04 19:39:24 +00:00
fyodor
f97f4bd203 2009-06-04 18:03:00 +00:00
ron
05a8b54511 Reduced the amount of output that p2p-conficker.nse gives unless verbosity 2 or higher is given. 2009-06-04 13:10:00 +00:00
fyodor
fbf0ea8d7e a script output idea 2009-06-04 02:47:51 +00:00
fyodor
722009d907 2009-06-04 02:42:33 +00:00
fyodor
c5d5b47769 Use $(INSTALL) command rather than cp to copy NSE scripts and libraries during install so that permissions are set properly too 2009-06-04 02:38:16 +00:00
fyodor
752748bb43 2009-06-04 00:54:25 +00:00
fyodor
978db0691b Note a problem I've been having with getting NSE to run as non-root user with installed (as opposed to in working directory) Nmap 2009-06-04 00:32:17 +00:00
daniel
50830f7488 o Added initial SCTP port scanning support to Nmap. SCTP is
a layer 4 protocol used mostly for telephony related applications.
  This brings the following new features:
  o SCTP INIT chunk port scan (-sY): open ports return an INIT-ACK
    chunk, closed ones an ABORT chunk.  This is the SCTP equivalent
    of a TCP SYN stealth scan.
  o SCTP COOKIE-ECHO chunk port scan (-sZ): open ports are silent,
    closed ports return an ABORT chunk.
  o SCTP INIT chunk ping probes (-PY): host discovery using SCTP
    INIT chunk packets.
  o SCTP-specific IP protocol scan (-sO -p sctp).
  o SCTP-specific traceroute support (--traceroute).
  o The ability to use the deprecated Adler32 algorithm as specified
    in RFC 2960 instead of CRC32C from RFC 4960 (--adler32).
  o 42 well-known SCTP ports were added to the nmap-services file.
  Part of the work on SCTP support was kindly sponsored by
  Compass Security AG, Switzerland.  [Daniel Roethlisberger]
2009-06-03 23:15:45 +00:00
jah
99c4008c03 Disable traceroute when -6 is requested. Before this, it was possible to reach
traceroute() with IPv6 targets if a ping scan was requested.
2009-06-03 21:39:53 +00:00
david
440980ae38 Add João Medeiros's topology saving feature.
http://seclists.org/nmap-dev/2009/q2/0409.html
2009-06-03 17:43:03 +00:00
david
94283c1721 Add a web page for SuperDOS to nmap-os-db. 2009-06-03 17:35:20 +00:00
batrick
105e9365b8 Added note on convention for localizing all globals needed at the beginning
of the script.
2009-06-03 05:45:19 +00:00
batrick
d569d5b75e Removed a debug statement that was left in. 2009-06-03 05:40:30 +00:00
batrick
e31c5973b1 Corrected a comment. 2009-06-03 05:38:44 +00:00
batrick
93c4f35f2e [NSE] When a script ends for any reason, all mutexes are now unlocked.
Some scripts would fail due to an error (whois.nse) causing other
scripts to become deadlocked on a mutex that would never unlock. This
patch fixes this problem. See [1] for more information.

[1] http://seclists.org/nmap-dev/2009/q2/0533.html
2009-06-03 03:40:13 +00:00
fyodor
9ccaf35c38 changes from NSE meeting 2009-06-03 00:59:05 +00:00
fyodor
3ba96c4bca 2009-06-02 21:44:18 +00:00
fyodor
1fb6b1ec33 more discussion w/David 2009-06-02 21:06:23 +00:00
fyodor
5315cba53d Changes from discussion w/David 2009-06-02 20:33:56 +00:00
batrick
e2b7bbc356 Fixed some inconsistent formatting. 2009-06-02 05:28:58 +00:00
batrick
3e4950eec2 Minor patch to change error messages to be lowercase as is common.
Also moved to an enumeration of mutex operations rather than hard coded
constants inside the switch.
2009-06-02 05:27:48 +00:00
fyodor
7f4b564b0e 2009-05-29 20:49:51 +00:00
david
923f03707c Revise the new --script-args documentation, tweak formatting. 2009-05-29 16:25:03 +00:00
batrick
cfc16fb6de Updated refguide and scripting chapter of book to the new syntax of the
--script-args as well as a more full account of some details. The previous text
was very vague about some features, especially array values.
2009-05-29 07:14:48 +00:00
batrick
6f51d7d6a9 Fix to the parsing of the --script-args switch [1].
Previously, the --script-args switch would only accept values
with alphanumeric characters or underscores. A full treatise
of the history of changes to this switch and problems can be
found here [2].

Here are the new rules for --script-args definitively:

--script-args <string>

<string> may contain a sequence of key=value pairs and array entries
separated by commas. All whitespace except where noted below is
ignored.

A key, value, or array value may be a sequence of characters except
'{', '}', ',', '=', and all space characters. You may overcome this
restriction by using quotes (single or double) to allow all characters
within the quotation marks. You may also use the quote delimiter
inside the sequence so long as it is escaped by a backslash.

A value for a key/value pair or an array value are allowed to be
a nested table delimited by '{' and '}'.

[1] http://seclists.org/nmap-dev/2009/q2/0204.html
[2] http://seclists.org/nmap-dev/2009/q2/0211.html
2009-05-29 00:30:56 +00:00
josh
fe069f1420 Fixed a bug with the --defeat-rst-ratelimit option. 2009-05-28 23:36:45 +00:00
david
8862e63add Fix CHANGELOG typo. 2009-05-28 22:06:10 +00:00
venkat
cbba41df5c 2009-05-28 20:06:50 +00:00
josh
79b92efffb Updated the CHANGELOG to reflect the move to all PNG images in zenmap [Josh] 2009-05-28 16:20:04 +00:00
batrick
3eba69f9f8 Removed packet.hextobin and packet.bintohex. Both are unnecessary
with the struct (bin) library available:

function hextobin(str) return bin.pack("H", str) end
function bintohex(str) return bin.unpack("H", str) end

Also removed a commented copy that was in the sniffer-detect.nse script.
2009-05-28 03:59:02 +00:00
fyodor
d337e05f7f minor language tweak 2009-05-27 22:16:28 +00:00
david
439e991985 When handling ICMP ping probe replies, make sure we match up with the
right type of probe (0 with 8, 14 with 13, 18 with 17). With the new
default ping, I was scanning a network where an echo reply would
mistakenly be interpreted as a response to a timestamp request, even
though that host didn't respond to timestamp requests. That host would
become the global ping host, and all its probes would be dropped,
slowing the scan way down. A ping scan of a /24 took over 1,000 seconds
when it should have taken about 10.
2009-05-27 22:08:24 +00:00