1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00
Commit Graph

2839 Commits

Author SHA1 Message Date
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
josh
a36788b554 Updated the CHANGELOG to reflect a change in the zenmap profiles 2009-06-10 20:54:42 +00:00
david
7d9da6df81 Do a recursive distclean in ncat before nbase. Otherwise, this sequence
of commands
	./configure
	make
	make clean
	make distclean
fails when makefile.dep is remade in the ncat directory:
In file included from ncat.h:12,
                 from ncat_main.c:4:
../nbase/nbase.h:128:26: error: nbase_config.h: No such file or directory
(Many similar messages follow.)

This happened because "make clean" deletes ncat/makefile.dep. Remaking
makefile.dep requires preprocessing C files that indirectly include
nbase_config.h, which was removed from nbase by distclean. Doing the
distclean in ncat before nbase sidesteps the issue.
2009-06-10 03:16:46 +00:00
david
e80f1188e2 [Ncat] There is a backwards-incompatible change in the way that
listen mode works. The new default behavior is to accept only one
connection, and quit when the connection ends. This was necessary to
prevent data loss in some situations; some programs require Ncat to
send an EOF before they flush their internal buffers and finish
processing the last bit of data. See
http://seclists.org/nmap-dev/2009/q2/0528.html for more information.
Use the new -k or --keep-open option to get the old behavior, in
which Ncat will accept multiple simultaneous connection, combine all
their input, and accept more connections after a disconnection.
2009-06-10 03:03:01 +00:00
fyodor
2a5750baef Apply 1-line fix from Jah which now properly counts traceroute ping scan IPs (previously it would say things like 'WARNING: No targets were specified, so 0 hosts scanned.' and 'Nmap done: 0 IP addresses (1 host up) scanned' 2009-06-10 01:56:46 +00:00
fyodor
f234bb18fb New changes from chat w/David 2009-06-09 21:42:58 +00:00
bmenrigh
0c937eec65 Updated the slow ser2net match that we had with the original
fingerprint submission.  The service was telnet and so the protocol
has been changed to telnet and ser2net has been put into the product
field.
2009-06-09 20:09:09 +00:00
fyodor
f1bd909cb9 add some SSL ideas 2009-06-09 20:00:12 +00:00
fyodor
e06039daba 2009-06-09 19:44:04 +00:00
ron
8ba83f3460 Cleaned up the output for smb-check-vulns.nse. Messages are no longer displayed by default if a vulnerability (or infection) isn't found. With -v, messages indicating a vulnerability was fixed or malware wasn't found are displayed. With -d, error messages are displayed. 2009-06-09 17:56:41 +00:00
bmenrigh
635f464a7c I updated our 5 slowest match lines with slightly more efficient
matching strategies.  It is really great that we have so few match
lines that really need any performance attention.  As long as a match
has an anchor (though ^ seems better than $ with PRCE) it should be
fast enough.  We also want to avoid things like
"m|^whatever.*something.*" but we got rid of all of those in a
previous review.

The only "bad" match we have now is:

match ser2net m|\r\nser2net port \d+ device (/dev/[-\w_]+) ...snip...

I think this match should be commented out so that we can get a better
submission.  With a big release coming up so soon though I don't want
to remove any useful features.  I've left a comment about it's
performance and maybe myself, Doug, or somebody else will think about
the match more at a later date.
2009-06-09 00:00:51 +00:00
david
4e117783a1 With --version-trace, show the names of probes as they are sent. Also
show the names of probes that had a match with --version-trace (used to
only happen with -d2). The patch is from Tom Sellers.
2009-06-08 23:42:57 +00:00
bmenrigh
7c63ab6bcd Adding the imap-capabilities script and supporting imap library.
The imap-capabilities script is mostly feature-complete but I could
see adding some analysis code to warn users of non-SSL'd IMAP servers
that offer STARTTLS without NOLOGIN.

The imap "library" is really a joke.  It does the minimum required to
support getting capabilities and nothing more.  IMAP requires each
command to use a unique identifier like 000, 001, 002, etc.  Right now
the identifier is hardcoded to a001.  To make a real imap library that
supports logging in, and other IMAP features a state variable will
have to be maintained to change the command uid.  It would be nice to
see the library get updated so that IMAP brute-forcing could be
supported.
2009-06-08 23:21:56 +00:00
david
5e7c794952 Fix SSL in listen mode for BSD systems and others where a socket inherits its
non-blocking status from accept. A non-blocking socket makes SSL_accept fail if
we naively treat it like a blocking socket.
2009-06-08 00:05:11 +00:00
david
75a2244f97 Change "Save Snapshot" to "Save Graphic" in CHANGELOG. 2009-06-07 14:14:55 +00:00
fyodor
b213d5b708 Changed the build system a bit. Removed Makefile.am since we no longer have all the files needed to recreate it in the libpcre directory anyway. I had to edit Makefile.in to remove references to it too. Removed some configure.ac code which lead to removing pcre_chartables.cc; regenerated configure and aclocal 2009-06-07 06:43:32 +00:00
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