Subject: Nmap package update (3.48)
To: None <tech-pkg@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 10/06/2003 18:37:11
--EP0wieDxd4TSJjHq
Content-Type: multipart/mixed; boundary="FsscpQKzF/jJk6ya"
Content-Disposition: inline


--FsscpQKzF/jJk6ya
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

new version of nmap was released today but since pkgsrc is frozen
i won't update the nmap{,fe} packages until it's over.  for those
interested in the new version i am attaching the diffs.

it's tested on NetBSD 1.6Z/i386 and Solaris 9/SPARC with SunPro
compilers, any other combinations are untested but expected to work.
i'd appreciate "it works for me on x, version y, platform z, compiler w"
mails, though :) (_privately_, no need to flood the list!).  bugreports
are welcome as well, preferrably via send-pr(1).  thanks!


Changes since 3.45:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

o Integrated an enormous number of version detection service
  submissions.  The database has almost doubled in size to 663
  signatures representing the following 130 services:=20
    3dm-http afp apcnisd arkstats bittorent chargen citrix-ica
    cvspserver cvsup dantzretrospect daytime dict directconnect domain
    echo eggdrop exec finger flexlm font-service ftp ftp-proxy gnats
    gnutella-http hddtemp hp-gsg http http-proxy hylafax icecast ident
    imap imaps imsp ipp irc ircbot irc-proxy issrealsecure jabber
    kazaa-http kerberos-sec landesk-rc ldap linuxconf lmtp lotusnotes
    lpd lucent-fwadm meetingmaker melange microsoft-ds microsoft-rdp
    mldonkey msactivesync msdtc msrpc ms-sql-m mstask mud mysql
    napster ncacn_http ncp netbios-ns netbios-ssn netrek netsaint
    netstat netwareip networkaudio nntp nsclient nsunicast ntop-http
    omniback oracle-mts oracle-tns pcanywheredata pksd pmud pop2 pop3
    pop3s poppass postgresql powerchute printer qotd redcarpet
    rendezvous rlogind rpc rsync rtsp sdmsvc sftp shell shivahose
    sieve slimp3 smtp smux snpp sourceoffice spamd ssc-agent ssh ssl
    svrloc symantec-av symantec-esm systat telnet time tinyfw upnp
    uucp veritasnetbackup vnc vnc-http vtun webster whois wins
    winshell wms X11 xfce zebra

o Added the ability to execute "helper functions" in version
  templates, to help clean up/manipulate data captured from a server
  response.  The first defined function is P() which includes only
  printable characters in a captured string.  The main impetus for
  this is to deal with unicode strings like
  "W\0O\0R\0K\0G\0R\0O\0U\0P\0" that many MS protocols send.  Nmap can
  now decode that into "WORKGROUP".

o Added SUBST() helper function, which replaces strings in matched
  appname/version/extrainfo strings with something else.  For example,
  VanDyke Vshell gives a banner that includes
  "SSH-2\.0-VShell_2_2_0_528".  A substring match is used to pick out
  the string "2_2_0_528", and then SUBST(1,"_",".") is called on that
  match to form the version number 2.2.0.528.

o If responses to a probe fail to match any of the registered match
  strings for that probe, Nmap will now try against the registered "null
  probe" match strings.  This helps in the case that the NULL probe
  initially times out (perhaps because of initial DNS lookup) but the
  banner appears in later responses.

o Applied some portability fixes (particularly for OpenBSD) from Chad
  Loder (cloder(a)loder.us), who is also now the OpenBSD Nmap port
  maintainer.

o Applied some portability fixes from Marius Strobl
  (marius(a)alchemy.franken.de).

o The tarball distribution of Nmap now strips the binary at install
  time thanks to a patch from Marius Strobl
  (marius(a)alchemy.franken.de).

o Fixed a problem related to building Nmap on systems that lack PCRE
  libs (and thus have to use the ones included by Nmap).  Thanks to Remi
  Denis-Courmont (deniscr6(a)cti.ecp.fr) for the repot and patch.

o Alphebetized the service names in each Probe section in
  nmap-service-probes (makes them easier to find and add to).

o Fixed the problem several people reported where Nmap would quit with
  a "broken pipe" error during service scanning.  Thanks to Jari Ruusu
  (jari.ruusu(a)pp.inet.fi) for sending a patch.  The actual error
  message was "Unexpected error in NSE_TYPE_READ callback.  Error
  code: 32 (Broken pipe)"

o Fixed protocol scan (-sO), which I had broken when adding the new
  output table format.  It would complain "NmapOutputTable.cc:128:
  failed assertion `row < numRows'".  Thanks to Matt Burnett
  (marukka(a)mac.com) for notifying me of the problem.

o Upgraded Libpcap to the latest tcpdump.org version (0.7.2) from
  0.7.1

o Applied a patch from Peter Marschall (peter(a)adpm.de) which adds
  version detection support to nmapfe.

o Fixed a problem with XML output being invalid when service detection
  was done on SSL-tunneled ports.  Thanks to the several people who
  reported this - it means that folks are actually using the XML
  output :).

o Fixed (I hope) some Solaris Sune ONE compiler compilation problems
  reported (w/patches) by Mikael Mannstrom (candyman(a)penti.org)

o Fixed the --with-openssl configure option for people who have
  OpenSSL installed in a path not automatically found by their
  compilers.  Thanks to  Marius Strobl (marius(a)alchemy.franken.de) for
  the patch.

o Made some portability changes for HP-UX and possibly other types of
  machines, thanks to a patch from Petter Reinholdtsen (pere(a)hungry.com)

o Applied a patch from Matt Selsky (selsky@columbia.edu) which fixes
  compilation on some Solaris boxes, and maybe others.  The error said
  "cannot compute sizeof (char)"

o Applied some patches from the NetBSD ports tree that Hubert Feyrer
  (hubert.feyrer(a)informatik.fh-regensburg.de) sent me.  The NetBSD
  Nmap ports page is at http://www.NetBSD.org/packages/net/nmap/ .

o Applied some Makefile patches from the FreeBSD ports tree that I
  found at http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/nmap/files/

----- End Changes -----


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

--FsscpQKzF/jJk6ya
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nmap-3.48.diff"
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/net/nmap/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- Makefile	20 Sep 2003 14:15:27 -0000	1.28
+++ Makefile	6 Oct 2003 11:23:11 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.28 2003/09/20 14:15:27 salo Exp $
 #
=20
-DISTNAME=3D	nmap-3.45
+DISTNAME=3D	nmap-3.48
 CATEGORIES=3D	net security
 MASTER_SITES=3D	http://www.insecure.org/nmap/dist/
 EXTRACT_SUFX=3D	.tar.bz2
Index: distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/net/nmap/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- distinfo	20 Sep 2003 14:15:27 -0000	1.13
+++ distinfo	6 Oct 2003 11:23:11 -0000
@@ -1,9 +1,9 @@
 $NetBSD: distinfo,v 1.13 2003/09/20 14:15:27 salo Exp $
=20
-SHA1 (nmap-3.45.tar.bz2) =3D f89fabaebabdaa548704bd0ea1f0a0aac028ebcc
-Size (nmap-3.45.tar.bz2) =3D 1221032 bytes
-SHA1 (patch-aa) =3D c2ef0b16ce8cda4e238f5d03a00fc08def78ab70
+SHA1 (nmap-3.48.tar.bz2) =3D 91ed393f9fbe4a0739de282b0aca003b856b93df
+Size (nmap-3.48.tar.bz2) =3D 1227663 bytes
+SHA1 (patch-aa) =3D 0ab8ca4b1123ab22720eb594973eb7e9ca07903b
 SHA1 (patch-ab) =3D c0fd4e153fd0823407f2e6923d33412b88d77a78
-SHA1 (patch-ad) =3D 71c22d0d76a789cf417b9b17d356a6b5f933553c
+SHA1 (patch-ad) =3D 9d9dc207ddd55e38d3ae95e41440c6f0c2bb2474
 SHA1 (patch-ae) =3D 703872b2f822e48080b6158774d0adf75e652bff
 SHA1 (patch-af) =3D 21b03fc6658267c6c40d65f634f4fe20d06a2d77
Index: patches/patch-aa
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/net/nmap/patches/patch-aa,v
retrieving revision 1.10
diff -u -r1.10 patch-aa
--- patches/patch-aa	20 Sep 2003 14:15:28 -0000	1.10
+++ patches/patch-aa	6 Oct 2003 11:23:11 -0000
@@ -1,34 +1,28 @@
-$NetBSD: patch-aa,v 1.10 2003/09/20 14:15:28 salo Exp $
+$NetBSD$
=20
---- Makefile.in.orig	2003-09-15 09:23:32.000000000 +0200
-+++ Makefile.in	2003-09-17 02:32:43.000000000 +0200
-@@ -16,9 +16,8 @@
+--- Makefile.in.orig	2003-10-06 10:23:20.000000000 +0200
++++ Makefile.in	2003-10-06 13:00:34.000000000 +0200
+@@ -16,9 +16,7 @@
  CC =3D @CC@
  CXX =3D @CXX@
  CCOPT =3D=20
 -LIBPCAPDIR =3D @libpcapdir@
- LIBPCREDIR =3D @LIBPCREDIR@
+-LIBPCREDIR =3D @LIBPCREDIR@
 -INCLS =3D -I$(LIBPCAPDIR)=20
 +INCLS =3D -I.
  DEFS =3D @DEFS@ -DNMAP_VERSION=3D\"$(NMAP_VERSION)\" -DNMAP_NAME=3D\"$(NM=
AP_NAME)\" -DNMAP_URL=3D\"$(NMAP_URL)\" -DNMAP_PLATFORM=3D\"$(NMAP_PLATFORM=
)\" -DNMAPDATADIR=3D\"$(nmapdatadir)\"
  # For mtrace debugging -- see MTRACE define in main.cc for instructions
  # Should only be enabled during debugging and not in any real release.
-@@ -64,9 +63,6 @@
- $(LIBPCREDIR)/libpcre.a: $(LIBPCREDIR)/Makefile FORCE
- 	@echo Compiling libpcre; cd $(LIBPCREDIR) && $(MAKE)
+@@ -61,12 +59,6 @@
+ # all of the prerequisites (e.g. recursive makes and such)
+ FORCE:
 =20
+-$(LIBPCREDIR)/libpcre.a: $(LIBPCREDIR)/Makefile FORCE
+-	@echo Compiling libpcre; cd $(LIBPCREDIR) && $(MAKE)
+-
 -$(LIBPCAPDIR)/libpcap.a: $(LIBPCAPDIR)/Makefile FORCE
 -	@echo Compiling libpcap; cd $(LIBPCAPDIR) && $(MAKE)
 -
  $(NBASEDIR)/libnbase.a: $(NBASEDIR)/Makefile FORCE
  	@echo Compiling libnbase;
  	cd $(NBASEDIR) && $(MAKE)
-@@ -254,7 +250,7 @@
- 	$(MAKEDEPEND) $(INCLS) -s "# DO NOT DELETE" -- $(DEFS) -- $(SRCS)
-=20
- install-nmap: $(TARGET)
--	$(SHTOOL) mkdir -f -p -m 755 $(bindir) $(mandir)/man1 $(nmapdatadir) $(d=
eskdir)
-+	$(SHTOOL) mkdir -f -p -m 755 $(bindir) $(mandir)/man1 $(nmapdatadir)
- 	$(INSTALL) -c -m 755 nmap $(bindir)/nmap
- 	$(INSTALL) -c -m 644 docs/$(TARGET).1 $(mandir)/man1/$(TARGET).1
- 	$(INSTALL) -c -m 644 nmap-os-fingerprints  $(nmapdatadir)/nmap-os-finger=
prints
Index: patches/patch-ad
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/net/nmap/patches/patch-ad,v
retrieving revision 1.6
diff -u -r1.6 patch-ad
--- patches/patch-ad	20 Sep 2003 14:15:28 -0000	1.6
+++ patches/patch-ad	6 Oct 2003 11:23:11 -0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.6 2003/09/20 14:15:28 salo Exp $
+$NetBSD$
=20
---- nbase/configure.orig	2003-09-13 06:24:43.000000000 +0200
-+++ nbase/configure	2003-09-17 02:08:19.000000000 +0200
+--- nbase/configure.orig	2003-10-03 10:33:24.000000000 +0200
++++ nbase/configure	2003-10-06 12:52:20.000000000 +0200
 @@ -10,6 +10,8 @@
  ## M4sh Initialization.  ##
  ## --------------------- ##
@@ -11,43 +11,7 @@
  # Be Bourne compatible
  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    emulate sh
-@@ -3314,7 +3316,7 @@
-=20
-=20
- # If they didn't specify it, we try to find it
--if test "$use_openssl" =3D=3D "yes" -a "${specialssldir+set}" =3D=3D "set=
" ; then
-+if test "$use_openssl" =3D "yes" -a "${specialssldir+set}" =3D "set" ; th=
en
-   if test "${ac_cv_header_openssl_ssl_h+set}" =3D set; then
-   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
- echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
-@@ -3456,7 +3458,7 @@
-=20
-=20
-=20
-- if test "$use_openssl" =3D=3D "yes"; then
-+ if test "$use_openssl" =3D "yes"; then
-    if test "${ac_cv_header_openssl_err_h+set}" =3D set; then
-   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
- echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
-@@ -3599,7 +3601,7 @@
-=20
-  fi
-=20
-- if test "$use_openssl" =3D=3D "yes"; then
-+ if test "$use_openssl" =3D "yes"; then
-    if test "${ac_cv_header_openssl_rand_h+set}" =3D set; then
-   echo "$as_me:$LINENO: checking for openssl/rand.h" >&5
- echo $ECHO_N "checking for openssl/rand.h... $ECHO_C" >&6
-@@ -3742,7 +3744,7 @@
-=20
-  fi
-=20
-- if test "$use_openssl" =3D=3D "yes"; then
-+ if test "$use_openssl" =3D "yes"; then
-=20
- echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
- echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
-@@ -3750,7 +3752,7 @@
+@@ -6423,7 +6425,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=3D$LIBS
@@ -56,7 +20,7 @@
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  /* confdefs.h.  */
-@@ -3803,7 +3805,7 @@
+@@ -6476,7 +6478,7 @@
  #define HAVE_LIBSSL 1
  _ACEOF
 =20
@@ -65,12 +29,3 @@
 =20
  else
     use_openssl=3D"no"
-@@ -3816,7 +3818,7 @@
-  fi
- fi
-=20
--if test "$use_openssl" =3D=3D "yes"; then
-+if test "$use_openssl" =3D "yes"; then
-   cat >>confdefs.h <<\_ACEOF
- #define HAVE_OPENSSL 1
- _ACEOF

--FsscpQKzF/jJk6ya
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nmapfe-0.9.5nb10.diff"
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/net/nmapfe/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile	20 Sep 2003 14:16:06 -0000	1.18
+++ Makefile	6 Oct 2003 11:25:03 -0000
@@ -1,9 +1,9 @@
 # $NetBSD: Makefile,v 1.18 2003/09/20 14:16:06 salo Exp $
 #
=20
-DISTNAME=3D	nmap-3.45
+DISTNAME=3D	nmap-3.48
 PKGNAME=3D	nmapfe-0.9.5
-PKGREVISION=3D	9
+PKGREVISION=3D	10
 CATEGORIES=3D	net security
 MASTER_SITES=3D	http://www.insecure.org/nmap/dist/
 EXTRACT_SUFX=3D	.tar.bz2

--FsscpQKzF/jJk6ya--

--EP0wieDxd4TSJjHq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/gZo2iwjDDlS8cmMRAp/wAKCA69WRnwn23MYj7KLjLH7dHIoriwCeMv6M
GhQjkRkXB9qnUo2ynS4Xvm4=
=0kDd
-----END PGP SIGNATURE-----

--EP0wieDxd4TSJjHq--