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

3493 Commits

Author SHA1 Message Date
david
329ae2fe5c Add a UDP payload (GenericLines) for the echo port. 2009-07-06 18:41:06 +00:00
david
3f8392d974 Add CHANGELOG entry for UDP payloads and add guidelines for payloads to
payloads.cc.
2009-07-06 18:34:29 +00:00
david
2ad8804e64 Merge r10423:14069 from /nmap-exp/david/nmap-payloads. This adds UDP
payload sending by default for certain UDP ports. See
http://seclists.org/nmap-dev/2009/q3/0022.html.
2009-07-06 18:03:50 +00:00
fyodor
eb57221fce Add suggestion that Ndiff be able to show NSE script result changes 2009-07-05 22:49:41 +00:00
daniel
82f698becf Mark the __attribute__ ifndefs merged to upstream libdnet r653. 2009-07-05 21:08:52 +00:00
daniel
f2f66722d8 Making struct packing explicit for sctp.h too. 2009-07-05 21:02:43 +00:00
joao
52bb4f7cd0 dns-zone-transfer.nse now accepts new syntax argument table
comments updated
2009-07-05 10:01:10 +00:00
joao
bfa10a3499 whois.nse now accepts new syntax for table arguments.
comments updated.
2009-07-05 10:00:21 +00:00
joao
53c5e64c43 Fixed local/global issues with some vars 2009-07-05 09:59:02 +00:00
fyodor
549f3927a8 trivial typo fix 2009-07-05 09:38:34 +00:00
luis
98aedb8d1c Fixed a bug in --data-length parsing. User input was not being checked and in some cases that resulted in useless buffer allocations and unpredictable payload lengths. Check http://seclists.org/nmap-dev/2009/q2/0763.html for a complete description of the problem. 2009-07-04 21:15:13 +00:00
fyodor
7da44a92ef Add suggestion of enhancing Ndiff man page 2009-07-04 03:08:37 +00:00
fyodor
ae33f827b3 Note that James Levine wrote an old utility named Ndiff back in 2000 which served a similar purpose 2009-07-04 03:04:33 +00:00
david
9cbde2f3a0 Factor out Ethernet and socket sending function to avoid a big if-else
in send_ip_packet.
2009-07-03 18:52:54 +00:00
david
7eb63c1c2d On some BSD systems, we have to byte-swap the ip_len and ip_off fields before
sending. In send_ip_packet, unswap them after sending so that the buffer is
returned unmodified. Do the packet trace after unswapping the values so that
the correct length and fragmentation offset are reported. On Mac OS X, an
ip_len of 60 (0x003c) was being reported as 15360 (0x3c00) and when ip_off had
the DF flag set (0x4000), it looked like a fragmentation offset of 512
(0x0040 * 8).
2009-07-03 18:27:31 +00:00
david
a4c92f83e7 Use the preprocessor defines IP_DF and IP_OFFMASK instead of literal
0x4000 and 8191.
2009-07-03 18:11:15 +00:00
daniel
1cfb3558c9 Cleanup and introduction of a special section for changes to libdnet
which have been merged to the upstream libdnet repository and thus
do not have to be re-applied when the libdnet version included with
Nmap is updated in the future.
2009-07-03 18:07:20 +00:00
daniel
2ed58055ee Setting eol-style native in preparation of cleanups to NMAP_MODIFICATIONS. 2009-07-03 17:52:54 +00:00
batrick
1963fe7b96 Removed some code that did nothing. 2009-07-03 04:05:10 +00:00
josh
9c374417eb Fixed a formatting mistake in libdnet-stripped/src/intf.c and updated
NMAP_MODIFICATIONS to reflect a bug fix.
2009-07-02 20:33:38 +00:00
josh
294b15ce81 Fixed two memory leaks and a case where an open file may not be closed. 2009-07-02 03:36:43 +00:00
batrick
fa404e03c9 [NSE] This patch is related to the change to eliminate the reliance on
GC for collecting socket locks [1].

If a thread does not close any sockets it creates, and then
returns (or errors), the thread and sockets will keep their "lock" until
garbage collected. This would be the same situation as before in this
particular case (reliance on GC).

To fix this, I have changed the socket unlock system to close all the sockets
of a thread not yielded and remove its "lock".

[1] http://seclists.org/nmap-dev/2009/q2/0624.html
2009-07-02 02:41:11 +00:00
batrick
ca2d116e2b Improved some code's efficiency. 2009-07-02 01:14:10 +00:00
david
8ae512478a Reorganize some code to make it clear what assignments are happening.
This was slightly tricky and caused Coverity to false report a memory
leak.
2009-07-01 23:06:41 +00:00
batrick
6595577d6e Close the socket when finished getting the banner. 2009-07-01 21:43:49 +00:00
fyodor
971fb7551d Included release dates for the remainder of the CHANGELOG, which goes back to Nmap 2.05 (1999-02-08), also did some trivial normalization work to ensure releases are reported in the same format 2009-07-01 09:15:50 +00:00
fyodor
271264ab6b 2009-07-01 07:06:28 +00:00
fyodor
a3a273629e Correct a small option name mistake in the CHANGELOG 2009-07-01 06:48:58 +00:00
fyodor
8454dcd267 Changes from NSE meeting today 2009-07-01 01:27:14 +00:00
fyodor
0322a7b8e3 Changes from discussion w/David 2009-06-30 22:37:59 +00:00
fyodor
9ca4041ec1 Merged -r13793:HEAD from nmap-exp/dev/nmap branch now that we're opening up trunk development
again.  Here are the items which were merged:

------------------------------------------------------------------------
r13971 | jah | 2009-06-29 14:30:27 -0700 (Mon, 29 Jun 2009) | 2 lines

Improved a pattern for matching HTTP status-line, tidy away some variables and
fix a typo.
------------------------------------------------------------------------
r13967 | daniel | 2009-06-29 13:47:04 -0700 (Mon, 29 Jun 2009) | 5 lines

o Added a convenience top-level BSD makefile redirecting BSD make
  to GNU make on BSD systems.  This should help prevent bogus
  error reports when users run "make" instead of "gmake" on BSD
  systems. [Daniel Roethlisberger]

------------------------------------------------------------------------
r13965 | batrick | 2009-06-29 06:50:11 -0700 (Mon, 29 Jun 2009) | 14 lines

[NSE] The NSE Nsock Library binding no longer relies on garbage collection to
monitor the use of socket "slots". A thread (script) attempting to connect must
first obtain one of a limited number of available socket locks (usually 10 or
--max-parallelism). The binding would use garbage collection of sockets to
determine when a thread has finished using its allocated sockets. This is
unfortunately slow and requires us to constantly run the garbage collector to
cause timely reallocation. I have changed the binding to now regularly inspect
allocated sockets in the nsock_loop function. Available sockets slots are now
immediately reallocated and done with far less execution time.

See [1] for benchmarks and further explanation.

[1] http://seclists.org/nmap-dev/2009/q2/0624.html

------------------------------------------------------------------------
r13964 | batrick | 2009-06-29 06:37:49 -0700 (Mon, 29 Jun 2009) | 10 lines

[NSE] Fixed a rare (and usually undetectable) bug that can cause a SEGFAULT.
The NSE nsock library binding may attempt to push values on the stack of
a thread that ended due to an error. It is possible that the internal
Lua stack was completely full and any further pushed values would result
in a segmentation memory violation.

This bug is very hard to reproduce with a SEGFAULT but is usually visible
when Lua assertion checks are turned on. A socket handler routine must be
called AFTER a thread has ended in error.

------------------------------------------------------------------------
r13963 | batrick | 2009-06-29 05:51:20 -0700 (Mon, 29 Jun 2009) | 3 lines

Fixed some global scoped variables to be local. This caused a many scripts to
overwrite each others' sockets, options, etc.

------------------------------------------------------------------------
r13939 | joao | 2009-06-27 16:07:35 -0700 (Sat, 27 Jun 2009) | 2 lines

Fixed port rule to include ssl pop3 port, now that pop3.lua supports SSL connections in function capabilities

------------------------------------------------------------------------
r13938 | joao | 2009-06-27 16:06:28 -0700 (Sat, 27 Jun 2009) | 2 lines

Added transparent SSL support using comm.tryssl

------------------------------------------------------------------------
r13937 | joao | 2009-06-27 16:05:19 -0700 (Sat, 27 Jun 2009) | 2 lines

Added transparent SSL support using comm.tryssl

------------------------------------------------------------------------
r13936 | joao | 2009-06-27 16:03:50 -0700 (Sat, 27 Jun 2009) | 2 lines

Added SSL transparent support using comm.tryssl

------------------------------------------------------------------------
r13935 | joao | 2009-06-27 16:02:39 -0700 (Sat, 27 Jun 2009) | 2 lines

Added SSL transparent support using comm.tryssl

------------------------------------------------------------------------
r13934 | joao | 2009-06-27 16:01:38 -0700 (Sat, 27 Jun 2009) | 2 lines

Added SSL transparent support using comm.tryssl

------------------------------------------------------------------------
r13933 | joao | 2009-06-27 16:00:27 -0700 (Sat, 27 Jun 2009) | 2 lines

SSL transparent support using comm.tryssl

------------------------------------------------------------------------
r13932 | joao | 2009-06-27 15:19:58 -0700 (Sat, 27 Jun 2009) | 2 lines

Included transparent ssl support to function pop3.capabilities using comm.tryssl

------------------------------------------------------------------------
r13931 | joao | 2009-06-27 15:19:06 -0700 (Sat, 27 Jun 2009) | 3 lines

New version of comm.lua with function tryssl, that transparently adds support to ssl connections


------------------------------------------------------------------------
r13930 | joao | 2009-06-27 14:50:38 -0700 (Sat, 27 Jun 2009) | 6 lines

Fixed buffering problem exposed by david on nmap-dev list.
The problem was solved using a buffer to receive the data, making the script work fine in cases where the ssh packets are fragmented.

A very similar solution was applied to ssh1.lua.


------------------------------------------------------------------------
r13928 | batrick | 2009-06-27 04:43:12 -0700 (Sat, 27 Jun 2009) | 18 lines

[NSE] We now propogate a NSE initiated yield on a script through all user
coroutines so that NSE may resume control. Previously, scripts that would yield
in a child coroutine (e.g. a script's child coroutine generated by Lua's
coroutine.create function) would give control back to the script. A script
would yield in this way by making a blocking socket operation. NSE would be
unable to correctly resume child coroutine when the socket operation is
finished processing.

By yielding the chain of coroutines a script has operating, we allow to NSE to
handle the socket operation properly. NSE would then resume the entire chain so
execution may correctly resume at the coroutine which initiated the socket
operation. This restores the "illusion" that a script executes without
interruption.

See [1] for more information, further explanation, and some use cases.

[1] http://seclists.org/nmap-dev/2009/q2/0586.html

------------------------------------------------------------------------
r13817 | david | 2009-06-18 15:57:29 -0700 (Thu, 18 Jun 2009) | 3 lines

Improve an OS fingerprint with a model number and broader matching.
Based on a follow-up report from a submitter.

------------------------------------------------------------------------
r13814 | josh | 2009-06-17 21:34:15 -0700 (Wed, 17 Jun 2009) | 3 lines

[zenmap] Added support to zenmap for the new SCTP options: -PY, -sY and -sZ


------------------------------------------------------------------------
r13797 | ron | 2009-06-17 11:02:18 -0700 (Wed, 17 Jun 2009) | 1 line

Applied a patch from Mak Kolibabi that enhances the output of smb-enum-processes. The output is now modeled after the output of the 'ps' tool for higher verbosity levels.
------------------------------------------------------------------------
r13795 | david | 2009-06-17 09:05:21 -0700 (Wed, 17 Jun 2009) | 6 lines

The configure script now allows cross-compiling by assuming that
libpcap is recent enough. Previously it would quit because a test
program could not be run. libpcap will always be recent enough when
the included copy is used. The patch was contributed by Mike
Frysinger.
2009-06-29 23:48:19 +00:00
ithilgore
5016893ab8 Fixed another typo in a comment. 2009-06-28 17:44:07 +00:00
ithilgore
aca370f88d Fixed typos with vsnprintf (was vnsprintf). 2009-06-28 17:33:35 +00:00
fyodor
8642daf7c9 2009-06-26 01:57:27 +00:00
fyodor
d06068db0d note that the Zenmap display hanging problem is only on Mac OS X 2009-06-25 00:08:57 +00:00
fyodor
8e30fbbb7f add trivial SCTP NAT note 2009-06-24 21:20:27 +00:00
fyodor
aa2fd81f1c Prepare CHANGELOG for stable release candidate 2009-06-24 21:19:16 +00:00
fyodor
f552c50af6 Latest man page builds 2009-06-24 21:16:05 +00:00
fyodor
6267354a2d 2009-06-23 23:20:03 +00:00
david
8452d5dc93 Fix a typo in docs/TODO. OS detection is -O, not -sO. It's important
here because -O is being contrasted with -sV and -sC.
2009-06-19 17:39:45 +00:00
fyodor
f3916ef06b latest changes from NSE IRC meeting today 2009-06-17 09:39:52 +00:00
fyodor
a8b8650262 Changes from chat w/David 2009-06-16 22:21:40 +00:00
fyodor
a56436761a 2009-06-16 06:21:35 +00:00
david
0b508999c1 Fixed a memory bug (access of freed memory) when loading exclude
targets with --exclude. This was reported to occasionally cause a
crash. Will Cladek reported the bug and contributed an initial
patch.
2009-06-14 23:00:33 +00:00
joao
9dcee544b4 Fixed some comments 2009-06-14 19:54:18 +00:00
david
aef834cd12 Do a print_debug in ssh2.lua when an incomplete packet is processed. 2009-06-14 17:52:47 +00:00
fyodor
845c3dfb2d 2009-06-13 22:36:44 +00:00
fyodor
ef7b811881 Restore some nsedoc comment grammar fixes I added yesterday in r13725, but that Joao accidentally blew away in r13729 2009-06-13 21:57:50 +00:00
batrick
249c1e7179 Removed an arbitrary empty line. 2009-06-13 06:51:51 +00:00
fyodor
b0420dd8d5 fix typo 2009-06-13 05:13:47 +00:00