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

4571 Commits

Author SHA1 Message Date
david
8b082919a8 Add docs/zenmap.1. 2007-11-27 07:29:22 +00:00
david
dfb9c157c7 Delete auxiliary scripts config.guess, config.sub, depcomp, install-sh,
ltmain.sh, and missing from subdirectories. Autoconf automatically looks
in the parent directory for these files. I had to copy the files
depcomp, ltmain.sh, and missing into the root of the source tree.
2007-11-27 06:22:46 +00:00
david
e1a5a6424d Show a warning in libdnet whenever a Windows interface type is unrecognized.
(These get mapped to interfaces beginning with "net": net0, net1, etc.) I
originally planned to make this a debugging message to be displayed at a
certain debuggin level whether the interface type is recognized or not. It
looked to be a pain to give libdnet visibility of Nmap debugging level, so
instead it just prints a message to stderr only when the interface type is
unrecognized.
2007-11-27 00:39:01 +00:00
david
d08af8a057 List all interface aliases on Windows. All aliases of one interface will be
given the same name, e.g., "eth0". Use -e to choose the interface and -S to
choose the source address.
2007-11-26 23:44:20 +00:00
fyodor
d2123e7011 slight rewording 2007-11-26 22:33:47 +00:00
david
11b584df01 Add the beginning of a manual page for Zenmap. This includes
description, options summary, environment variables, bugs, history, and
authors sections. It doesn't have how-to sections, which I would like to
have next.

This is my first foray into DocBook. I'm using version 4.5 of the DTD. I
had to hard-code that number into the document type declaration to get
it to build.

The command lines I'm using to build are
xsltproc --xinclude --output zenmap.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl zenmap.xml
xsltproc --xinclude --output zenmap.html /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl zenmap.xml
2007-11-26 05:46:23 +00:00
david
ab6ab83942 Add a note about AutoReqProv: no to zenmap.spec.in. 2007-11-22 08:41:23 +00:00
david
a8e9dbf814 Use an explicit --with-zenmap in zenmap.spec.in. 2007-11-22 08:38:41 +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
53752ad8de Change l_exc_finalize to recognize both nil and false as exception indicators.
Previously only nil did this but most of NSE's internal functions return nil. A
value of true means there was no exception and anything else is a fatal error.
2007-11-22 08:31:13 +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
3782d2c020 Add an nmap.have_ssl NSE function and use it in the script showHTMLTitle.nse to
avoid doing an SSL probe if SSL is not available.
2007-11-22 06:38:23 +00:00
david
1c59946d7a Throw an exception instead of calling luaL_argerror in l_nsock_connect when an SSL connection is requested but OpenSSL isn't available. 2007-11-21 02:31:07 +00:00
david
fbeb42a7a1 Remove an unused "url" local variable from scripts/showHTMLTitle.nse. 2007-11-20 23:39:14 +00:00
david
a460f4433c Make nbase_dist_clean and nsock_dist_clean with distclean. 2007-11-20 23:37:36 +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
fyodor
1192b1b2cb trivial wording change to CHANGELOG; nmap-os-db resorted 2007-11-19 05:36:48 +00:00
fyodor
1f13e32bb9 changelog fixes 2007-11-19 05:28:09 +00:00
kris
74eaa60bba just fixing a few typos in the CHANGELOG 2007-11-19 02:52:46 +00:00
fyodor
91726c3ab2 version number bump 2007-11-19 02:35:37 +00:00
fyodor
351b65429b reflect latest changes in CHANGELOG, bump Nmap version number 2007-11-19 02:28:02 +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
david
85ab7254fa Re-override distutils's overriding of the Python interpreter path to be
"/usr/bin/env python" when DESTDIR is defined. This keeps from hardcoding a
specific interpreter location when building for installation on another
machine.
2007-11-16 22:18:09 +00:00
david
c6739547ef Change the dependency from gtk2 to pygtk2 in zenmap.spec.in. 2007-11-16 19:38:07 +00:00
david
5ad8ce148d Add
AutoReqProv: no
to zenmap.spec.in. This keeps dependencies from being calculated
automatically. This is because we don't want RPM to say the package
depends on python(abi) = 2.4, say, when it doesn't really. To replace
the automatic dependency calculation I added an explicit dependency on
python >= 2.4.
2007-11-16 19:35:38 +00:00
david
c743fd5353 Make some corrections to nmap-os-db suggested by João Medeiros. 2007-11-16 17:07:51 +00:00
kris
477214a779 Fixing another possible NULL dereference, in getTracePort() in traceroute.cc. Found with Coverity, CID 29 2007-11-16 03:45:03 +00:00
kris
ad7b6e416b This isn't fixing a bug; Coverity (CID 27) flagged this so I looked, and it doesn't make sense. Coverity saw that 'received' was tested again NULL, but was dereferenced afterwards with no check. So it should either be checked later, or not checked at all. Following timing.cc, and the fact that it isn't passed NULL anywhere, and because it doesn't make sense to pass 'adjustTimeouts' nothing to work with, I've just removed the check. Yeah, this log message is way longer than the patch is :). 2007-11-16 03:27:30 +00:00
kris
66064ad778 Fixing another possible NULL dereference, this time in readTraceResponses() in traceroute.cc. Any replies at all are apparently counted below this section of code, and there is no else case to go with this if and else if, so I figure I'll just let it go false so it goes along with any other abnormal responses. Found with Coverity, CID 28. 2007-11-16 03:14:59 +00:00
kris
7f1654e3ac Adding a couple free()s when having an early return in l_port_accessor() in nse_nmaplib.cc. Coverity (CID 32) found function_name, I added target_ip. 2007-11-16 02:20:09 +00:00
kris
3bb4599edd Fixing another possible negative array index, this time during Bounce Scan. Found with Coverity, CID 12. 2007-11-16 02:03:13 +00:00
kris
b452a38426 Call arp_close() on arp handle in setTargetNextHopMAC() in tcpip.cc. This functions frees it and closes it's descriptor. Found with Coverity, CID 16 2007-11-16 01:50:51 +00:00
kris
6ce9d03d8a Return NULL in reason_sort() if tail is NULL as it's possible tail never gets redefined. I think that's better than an assert(tail). Found with Coverity, CID 24 2007-11-16 01:26:42 +00:00
kris
fe63809293 Setting uninitialized pointer to NULL. It was possible that it would not be set, and also not be NULL so it would bypass the assert() on it, which in turn caused a crash. Found with Coverity, CID 18 2007-11-16 00:48:44 +00:00
kris
242744baaa Avoid negative array index (-1). Found with Coverity, CID 11 2007-11-16 00:17:23 +00:00
fyodor
5e67f7db4c When version detection changes the state of a port, the reason field is now updated as well (to udp-response or tcp-response as applicable). Thanks to Thomas Buchanan for the patch. 2007-11-15 23:41:12 +00:00
kris
c5244fb05f Fixing a double-free crash caused when using -O and --release-memory. Found with Coverity, CID 19 2007-11-15 23:36:18 +00:00
kris
2fbed3e856 Fixing a bug in TargetGroup::parse_expr(). A specification like '192.168.1.-4' would actually cause Nmap to treat it like '192.168.1.-'. Found with Coverity, CID 2. 2007-11-15 23:01:32 +00:00
kris
8de1fda6b3 Removing numberlist2array(); it's unused since David switched the ping port selection to use the same mechanism as port scans (e.g. using -PShttp*). 2007-11-15 22:42:17 +00:00
kris
01571cee00 fixing a bug in setState() in traceroute.cc. A || was used instead of && which caused it to always evaluate true -- Coverity CID 23 2007-11-15 22:25:00 +00:00
fyodor
acdaac1464 Update port state reason to script-set when an NSE script changes the --reason of a port state. Also make reason element available in port-table. Patch by Matthew Boyle 2007-11-15 21:03:00 +00:00
david
809a1e4612 Change paths in Makefile and zenmap.spec.in to match Zenmap file name changes. 2007-11-15 20:51:55 +00:00
david
5ac140d710 Upgrade WinPcap to version 4.02. 2007-11-15 20:30:47 +00:00
david
696134afc1 Add instructions on how to include the Vista version of Packet.dll in the WinPcap upgrading instructions. 2007-11-15 20:25:13 +00:00
david
1d2eba6405 Add a note about updating the LICENSE file in the WinPcap upgrading instructions. 2007-11-15 18:27:33 +00:00
david
661a4e6d4a Reformat the WinPcap upgrading instructions and add some more information (file locations, web addresses). 2007-11-15 18:08:38 +00:00
david
95fa8efd19 Don't include sys/sockio.h from tcpip.cc; it's already in tcpip.h. 2007-11-15 17:29:22 +00:00