1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 13:41:29 +00:00
Commit Graph

101 Commits

Author SHA1 Message Date
fyodor
9b4b172045 Update generated content for new release 2010-07-16 00:43:59 +00:00
luis
da126c8b78 Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
david
e3e9dedc78 Regenerate configure with Autoconf 2.63 for ease of merging with
nmap-dedup.
2010-06-18 15:28:31 +00:00
david
0bb200e105 Look for and link with libnl. This is needed when linking with the new
libpcap 1.1.1 on Linux, when libpcap is also linked with libnl (which is
is when available).
2010-06-13 23:24:41 +00:00
luis
79c5e1564b Updated configure script to reflect the changes in r18001 2010-06-10 15:14:23 +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
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
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
a669c3a39f Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping
into the standard distribution.
2010-02-17 01:46:34 +00:00
david
6b87459a58 Add --enable-nls and --disable-nls options to configure. These are used
to control whether translations of man pages are installed (by default
they will be). Even though we're not using gettext for translations, I
tried to make this interface as similar as possible to the gettext
configuration interface. Use can use the environment variable LINGUAS to
control which man pages get installed if you don't want all of them, for
example LINGUAS="es de". The translated man pages are not yet committed.
2009-11-05 19:50:33 +00:00
david
02625c9677 Run aclocal to get Python macros compatible with Python 3, and
regenerate configure.
2009-11-05 17:00:31 +00:00
daniel
e73cd9ee99 Fixing typo in libdnet ./configure notice. 2009-08-09 12:09:46 +00:00
fyodor
1df031bd43 Note in configure --help that the --with-libdnet=DIR configure option is NOT RECOMMENDED since we include many important fixes in our version; regenerated configure script. 2009-08-07 07:38:23 +00:00
david
c30888e04e Make -fno-strict-aliasing unconditional when using GCC. It was intended
to be enabled when the GCC major version was greater than or equal to 4,
but the test was backwards to it was in effect for for versions less
than or equal to 4. So it was in effect already unconditional.
-fstrict-aliasing is supported all the way back in 2.95.2, and I suppose
-fno-strict-aliasing is too.
2009-07-22 00:32:57 +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
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
dd7dcdf706 remove PCAP_TIMEOUT_IGNORED define since it isn't used anywhere currently 2009-05-20 21:15:37 +00:00
fyodor
e8880137ee o Patched configure.ac to detect Lua include and library files in
"lua5.1" subdirectories of /usr/include and the like. Apparently
  Debian puts them there. We still check the likes of
  /usr/include/lua.h and /usr/include/lua/lua.h as well. [Jan
  Christoph Nordholz]
2009-05-18 21:14:12 +00:00
david
342272eca7 Revert r10484, which added checks for GTK+ and PyGTK in configure. The checks
failed if a user didn't have the development versions of those libraries
installed; in particular, they tried to compile a GTK+ program and looked for
pkg-config's .pc files. It is better to err on the side of building Zenmap when
it may not be supported than not building it when it may in fact be supported
(which was the previous behavior anyway). See discussion at
http://seclists.org/nmap-dev/2008/q4/0054.html.
2008-10-05 00:42:25 +00:00
david
13663fb649 Have configure check for GTK+ 2.8.0 and PyGTK 2.8.0 in addition to Python 2.4
when deciding whether to build Zenmap. Those versions are required for the
Cairo functions used by RadialNet.
2008-10-04 01:24:38 +00:00
david
1073c8283a Merge from /nmap-exp/david/nmap-ndiff and /nmap-exp/david/zenmap-ndiff. 2008-09-18 15:51:40 +00:00
david
f40f6e9549 Don't use CXXFLAGS when making makefile.dep, because that doesn't work with
universal binaries. Instead, put -DNOLUA in CPPFLAGS.
2008-09-16 04:25:39 +00:00
kris
c74ce1f424 Adding Ncat to /nmap. This should have Ncat in the regular build systems for
Windows and UNIX, and install/distro system for the source tarball, RPM, OS X
installer (thanks to David) and the Windows installer.

configure --without-ncat keeps it out on Unix
2008-09-16 01:34:28 +00:00
david
25cb95db56 Make configure fail with an error if the user requests --with-openssl (without
giving a directory) and OpenSSL is not found. This is meant to guard against
mistakenly building an RPM without OpenSSL on a machine where it is not
available.

If you don't give any arguments, configure still works the same way: it checks
for OpenSSL and doesn't use it if it's not present. If you use
--with-openssl=DIR or --without-openssl then configure takes you at your word
without checking anything. If you say --with-openssl and OpenSSL is fine then
Nmap is built with OpenSSL. The only difference this change introduces is if
you say --with-openssl and OpenSSL is not found. Now the configure script
quits, where previously it would continue with a warning.
2008-09-08 23:37:03 +00:00
david
b3eddfe90a Remove the nselib-bin directory. Almost all references to it have been removed
too. The section in scripting.xml about creating C modules is gone. (But maybe
it should be replaced with a tutorial on making static modules?) The only
places where nselib-bin is still referenced are in mswin32/nsis/Nmap.nsi, where
it is still removed on uninstallation; and in mswin32/nmap.vcproj, from where I
don't have the resources now to remove it.
2008-09-05 05:32:06 +00:00
david
ef650e0f67 Delete install-sh. We don't need it because we can use shtool (configure checks
for both).
2008-08-19 18:23:47 +00:00
david
e052c2eaae Link against -lodm and -lcfg on AIX. 2008-06-15 07:05:12 +00:00
david
69cfb4a4d9 In configure.ac, move the line
LUA_CFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
out of a case statement so that it becomes the default for all systems but Mac
OS X. Previously it was in the '*' branch of the case statement, so it ran only
for systems that weren't otherwise handled. This may have caused the error
reported at http://seclists.org/nmap-dev/2008/q2/0464.html.
2008-05-27 15:59:43 +00:00
david
7c5fa7a808 Remove an unused LUAFLAVOR=bsd definition in configure.ac. 2008-05-20 05:55:13 +00:00
david
cac1f8cf09 Pass CC to the liblua build. Also simplify the code handling Lua CFLAGS a bit. 2008-05-20 05:52:06 +00:00
david
fac8d52c1c Remove a test for the existence of $CXX in configure.ac. This was already done
better by AC_PROG_CXX and caused a failure when configured with ccache:

CXX="ccache /usr/bin/g++-4.0" ./configure
checking build system type... i386-apple-darwin9.2.2 
checking host system type... i386-apple-darwin9.2.2 
checking for gcc... ccache /usr/bin/gcc-4.0 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether ccache /usr/bin/gcc-4.0 accepts -g... yes 
checking for ccache /usr/bin/gcc-4.0 option to accept ISO C89... none needed 
checking for inline... inline 
checking for gcc... (cached) ccache /usr/bin/gcc-4.0 
checking whether we are using the GNU C compiler... (cached) yes 
checking whether ccache /usr/bin/gcc-4.0 accepts -g... (cached) yes 
checking for ccache /usr/bin/gcc-4.0 option to accept ISO C89... 
(cached) none needed 
checking whether we are using the GNU C++ compiler... yes 
checking whether ccache /usr/bin/g++-4.0 accepts -g... yes 
checking for ccache /usr/bin/g++-4.0... MISSING 
configure: error: Could not locate a C++ compiler. If it exists, add it 
to your PATH or give configure the CXX=path_to_compiler argument. 
Otherwise, install a C++ compiler such as g++ or install a binary 
package of Nmap (see http://nmap.org/download.html ))
2008-05-20 05:31:53 +00:00
fyodor
bad1caa2e0 o Fixed a bug which caused Nmap to send bad checksums on Solaris 10
x86.  This was due to a workaround for an Ancient Solaris 2.1 bug
  which activated when the OS string matched "solaris2.1*".  The
  problem has now been resolved until Solaris 20 comes out and hits
  our "solaris2.2*" bug workarounds. Thanks to Nathan Bills for the
  problem report.  Fixed by Fyodor.
2008-05-06 23:28:34 +00:00
david
4fa44aecbf Split Zenmap uninstallation into its own makefile target uninstall-zenmap, to
make it easier when we actually support uninstalling Zenmap with the makefile.
2008-05-05 18:33:21 +00:00
fyodor
d622c98e4b o Fix a couple bugs in the way the Nmap built system checked for an
existing LUA library.  A bashism caused one test to fail on system
  which don't use bash as /bin/sh, and another bug fixed --with-liblua
  configure option for specifying your own liblua. [Daniel
  Roethlisberger]
2008-05-04 19:27:34 +00:00
kris
9a89b403f9 Moving Nmap's config.h[.in] to nmap_config.h[.in] 2008-04-28 17:53:32 +00:00
david
b6f898d573 Put CFLAGS in LUAFLAGS from configure. liblua needs these in order to be built
universal and linked against a universal nmap binary.
2008-04-27 03:53:02 +00:00
david
e902f3be2e Accumulate include directories in CPPFLAGS, not CXXFLAGS, in the configure
script. This is to enable us to use just CPPFLAGS where we don't want CXXFLAGS
also. An example of this is when we are generating dependencies with -MM. The
Apple GCC won't let us use this flag when we also give "-arch ppc -arch i386"
in CXXFLAGS, as we would when generating a universal binary.
2008-04-25 23:51:26 +00:00
david
cfb8d87874 Add --with-libdnet=included to the configure --help output and clarify that it
is the default.
2008-04-10 21:00:09 +00:00
david
e025ff4173 Fix the test for liblua (on my computer it requires also linking with libm) and
simplify the Lua check in configure.ac.
2008-04-10 20:44:11 +00:00
fyodor
d421951a21 update changelog and regenerate files in prep for 4.60 build and release 2008-03-15 01:21:22 +00:00
fyodor
29ea08eb00 Change the Nmap URL in a few more places 2008-01-17 07:36:50 +00:00
david
a5c321c7fa Regenerate configure. When configure.ac was modified in r6345 to add nselib-bin
to SUBDIRS, Autoconf wasn't run so the change didn't make it into configure.
2007-11-29 09:36:33 +00:00
fyodor
7c7cec7c1d better detection and support for systems which use pcre/pcre.h rather than just pcre.h. Bug reported by Lionel Cons 2007-11-27 19:32:49 +00:00
david
1f1e8bcb1d Check for Python only if Zenmap is requested, and bail out if Zenmap is
explicitly requested and Python is not available.
2007-11-22 08:37:34 +00:00
david
672f9fc527 Fix a typing error in configure.ac: with_nsock -> with_libnsock. This made it impossible to name an alternative nsock directory with something like --with-libnsock=/home/david/nsock.w 2007-11-22 07:45:28 +00:00
david
70425e715d Make nmap be rebuilt when something in a subdirectory changes. Rather than
"all" depending on libpcre/libpcre.a, it now depends on a target pcre_build,
which always runs and does the build in the subdirectory. "nmap" depends on
libpcre/libpcre.a itself. The same thing happens for other subdirectory builds.
Subdirectory builds are prerequisites of "all" and "make nmap" happens in the
body of "all" so the subdirectories are always built first.
2007-11-22 07:43:59 +00:00
david
d63bb4db35 Use literal directory names (not variable references) in calls to
AC_CONFIG_SUBDIRS to avoid this warning:

$ autoconf
configure.ac:689: warning: AC_CONFIG_SUBDIRS: you should use literals
autoconf/status.m4:929: AC_CONFIG_SUBDIRS is expanded from...
configure.ac:689: the top level
2007-11-19 21:49:56 +00:00
david
d029d1d75a Look for strip in configure and strip nmap with strip -x on install. install -s
or strip with no arguments was stripping dynamically loaded NSE functions on
Mac OS X. The difference between plain strip and strip -x was so slight on
Linux that I just made it unconditional.
2007-11-19 21:36:21 +00:00
david
891abf25c3 Move the call to AC_CANONICAL_HOST up higher in configure.ac. 2007-11-19 21:01:33 +00:00
david
d345085863 Regenerate configure scripts with Autoconf 2.61 and update config.guess
and config.sub with the latest versions from
http://cvs.savannah.gnu.org/viewvc/config/?root=config.
2007-11-18 21:36:31 +00:00