1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
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
david
7b6a56c2a6 Clarify a CHANGELOG entry: Ncat connect mode only makes sockets blocking
before handing them off to --exec or --sh-exec.
2009-06-13 02:42:19 +00:00
fyodor
a04c5c81f4 Rebuilt stuff, starting release builds 2009-06-13 02:37:20 +00:00
fyodor
c73e73be68 2009-06-13 02:36:21 +00:00
fyodor
386f381dad OK, I think CHANGELOG is finally ready to go. This is another monster release! 2009-06-13 02:33:37 +00:00
joao
2d096e924f Removed special chars from comments 2009-06-13 02:25:41 +00:00
fyodor
3d683755dc Almost done with CHANGELOG, about to spell check 2009-06-13 02:17:06 +00:00
joao
e938e1a18f Fixed comments about arguments on the script.
Fixed description.
2009-06-13 02:15:01 +00:00
joao
891fe08af8 Script now have two arguments:
- openproxy.url: Url to make requests to the proxy
- openproxy.pattern: Pattern that should be checked inside the responses for requests HEAD and GET

pattern will never be used for CONNECT requests, that will only check for the connection code

Script now uses default pattern checks for default url
(checks for ^server: gws in www.google.com requests)
If openproxy.url is used, script performs code check, looking for codes 200,301,302.
If openproxy.url is used and openproxy.pattern also, script performs pattern check
2009-06-13 01:55:16 +00:00
fyodor
d678c982d0 Some minor rewording of the nsedoc 2009-06-13 00:11:06 +00:00
david
ac60e4b431 Use @BASE to export build directories, not @HEAD, so I can build from a
specific revision if I have to.

Don't rebuild the script database. There are new makefile targets to handle
this and we decided that if it's broken it's better for it to be broken on the
Mac too.
2009-06-13 00:05:15 +00:00
joao
c951c9d0c1 Main changes on script http-open-proxy.nse:
- Attempts requests using HEAD and CONNECT also (not only GET, as before).
- Script now accepts destination url for doing the test as argument
- Chekings now are made using response code (200, 301, 302) and no longer google server header
2009-06-12 23:28:21 +00:00
joao
f39e109b64 Adding script for performing open socks proxy server discovery.
Script was also included to script.db file.
2009-06-12 23:23:54 +00:00
david
9031a1a428 Cope with not having the pysqlite2 or sqlite3 modules in Zenmap by
installing dummy interfaces that return zero answers. The necessary
pysqlite modules are not easily available in CentOS 5.3 at least. Remove
the dependency on python-sqlite2 from zenmap.spec.in.
2009-06-12 22:34:50 +00:00
bmenrigh
f20150351e Added and improved Famatech Radmin service matches/softmatch to better
support various 3.X releases.  Also added a match for Radmin when the
source IP is ACL'd.  Thanks to Tom Sellers for the hard work and
providing a patch!
2009-06-12 22:01:31 +00:00
fyodor
6f38892828 Working on the CHANGELOG for the 4.85BETA10 release, which I hope to make today if possible. I still have more CHANGELOG entries to add and shuffling/spell-checking/etc to perform 2009-06-12 10:04:11 +00:00
ron
7604ec68e2 Updated http-iis-webdav-vuln.nse: gives less output by default (unless -v or -d is given). Also updated it to reflect Microsoft's MS09-020 bulletin. 2009-06-11 21:57:42 +00:00
josh
62567d1208 [zenmap] Fixed two bugs. The first had to do with updates from new scans being
added to existing HostInfo objects.  This made examining scan diffs problematic
in zenmap.  The second had to do with canceling a scan and then removing it.
This would clear much of the information from the rest of the GUI.
2009-06-11 20:43:44 +00:00
fyodor
13ca62754c Add an investigation task relating to whether zenmap spec file can require python-sqlite rather than python-sqlite2 2009-06-11 07:08:34 +00:00
fyodor
e5f02fb2fd Add openssl argument for specifying openssl location in ./configure line 2009-06-11 07:04:34 +00:00
fyodor
ba1ccf8f43 Changed configure.ac to check for -ldl in more circumstances, regenerated configure in nmap and nmap/nsock/src 2009-06-11 05:48:20 +00:00
fyodor
4e2ca99ba5 Removed svn:eol-style property for the configure scripts which still
had them.  Autoconf 2.63 inserts an ac_cr definition in configure scripts
which includes a literal \r which confuses svn and causes this error message:

svn: File 'configure' has inconsistent newlines
svn: Inconsistent line ending style

The next version of autoconf will apparently resolve this, but we can't
really wait at this point.  I made this same change to nmap/configure in
January '09 (r11902) and it hasn't lead to any problems.
2009-06-11 05:47:05 +00:00
ron
ab59b09c03 Miscellaneous code cleanups in my smb-* libraries/scripts (removed unused includes, old debug code, etc.) 2009-06-10 23:13:15 +00:00