nmap - Network exploration tool and security scanner ChangeLog

HOWTO


# Nmap 5.51
# =========
# Slackware 12.1: nmap 4.60
# Slackware 12.2: nmap 4.76
# Slackware 13.0: nmap 5.00
# Slackware 13.1: nmap 5.21
# Slackware 13.37: nmap 5.51

# If you ever want to uninstall Nmap, or clean up files from an old version
# before installing a new one, skip down to the bottom for instructions.

# Prerequisites:
# Python >= 2.7 and GTK+ (for Zenmap)
# libpcap (uses the system installed
#  one if >= 0.9.4, otherwise uses the bundled one)
# PCRE
# lua
# OpenSSL (optional; leave off --with-openssl below to skip it)
# Glib
# GTK+ (for nmapfe)

cd
test -f installed/nmap-5.51.tar.bz2 && mv installed/nmap-5.51.tar.bz2 .
test ! -f nmap-5.51.tar.bz2 &&
wget http://download.insecure.org/nmap/dist/nmap-5.51.tar.bz2

# Here is where I got the md5sum from:
wget -q http://insecure.org/nmap/dist/sigs/nmap-5.51.tar.bz2.digest.txt \
-O - | grep " MD5 = " | tr -d [:space:] | tr [:upper:] [:lower:] | \
  awk -F= '{ print $2 }'

# Here is where I got the sha1sum from:
wget -q http://insecure.org/nmap/dist/sigs/nmap-5.51.tar.bz2.digest.txt \
-O - | grep " SHA1 = " | tr -d [:space:] | tr [:upper:] [:lower:] | \
  awk -F= '{ print $2 }'

# Verify tarball w/ md5sum:
echo "0b80d2cb92ace5ebba8095a4c2850275  nmap-5.51.tar.bz2" | md5sum -c

# Verify tarball w/ sha1sum:
echo "3415ad9a3915d7e162c9e91435cc35d9c73ac7f6  nmap-5.51.tar.bz2" | \
sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 6B9355D0 > /dev/null 2>&1 || gpg --recv-keys 6B9355D0 ) &&
wget -nc http://www.insecure.org/nmap/dist/sigs/nmap-5.51.tar.bz2.asc &&
  gpg --verify nmap-5.51.tar.bz2.asc nmap-5.51.tar.bz2 &&
   rm nmap-5.51.tar.bz2.asc

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "nmap-*" -exec rm -r {} \;
tar xjvf ~/nmap-5.51.tar.bz2
cd nmap-5.51
test $UID = 0 && chown -R root:root .

# If you don't have OpenSSL installed in the usual source-installed place
# (/usr/local/ssl), like if you have a distribution package installed that
# puts it under the /usr prefix, leave off the --with-openssl part below and
# configure should find it.

# I pass --disable-nls to configure because I don't need any translations.
# I only read/write English (well), if that is not the case for you, leave
# that one off.

# If you don't want to even try to build the front-end, pass
# --without-nmapfe to configure

./configure --prefix=/usr --mandir=/usr/man \
--with-openssl=/usr/local/ssl --disable-nls
make

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg nmap

# Install the new version
make install

# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/nmap-*.tar.* installed/nmap-*.tgz
mv nmap-5.51.tar.bz2 installed/


# If you ever want to uninstall Nmap, this should do it:
cd
su
test -d src/nmap-* && ( cd src/nmap-* ; make uninstall )
( /usr/bin ; rm -f ncat nmap nmapfe nping xnmap zenmap )
( /usr/man/man1 ; rm -f ncat.1 nmap.1 nping.1 )
test -d /usr/share/ncat && rm -r /usr/share/ncat
test -d /usr/share/nmap && rm -r /usr/share/nmap
exit
find ~/src -maxdepth 1 -type d -name "nmap-*" -exec rm -r {} \;
rm -f ~/installed/nmap-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2011-07-10 8:24pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]