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

Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping

into the standard distribution.
This commit is contained in:
david
2010-02-17 01:46:34 +00:00
parent fca2f90143
commit a669c3a39f
11 changed files with 149 additions and 18 deletions

View File

@@ -29,6 +29,7 @@ LIBPCREDIR = @LIBPCREDIR@
export LIBDNETDIR = @LIBDNETDIR@ export LIBDNETDIR = @LIBDNETDIR@
ZENMAPDIR = zenmap ZENMAPDIR = zenmap
NDIFFDIR = ndiff NDIFFDIR = ndiff
NPINGDIR = nping
PYTHON = @PYTHON@ PYTHON = @PYTHON@
DEFS = @DEFS@ -DNMAP_NAME=\"$(NMAP_NAME)\" -DNMAP_URL=\"$(NMAP_URL)\" -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\" DEFS = @DEFS@ -DNMAP_NAME=\"$(NMAP_NAME)\" -DNMAP_URL=\"$(NMAP_URL)\" -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\"
# With GCC, add extra security checks to source code. # With GCC, add extra security checks to source code.
@@ -72,9 +73,12 @@ TARGET = nmap
INSTALLNSE=@INSTALLNSE@ INSTALLNSE=@INSTALLNSE@
BUILDZENMAP=@BUILDZENMAP@ BUILDZENMAP=@BUILDZENMAP@
BUILDNDIFF=@BUILDNDIFF@ BUILDNDIFF=@BUILDNDIFF@
BUILDNPING=@BUILDNPING@
INSTALLZENMAP=@INSTALLZENMAP@ INSTALLZENMAP=@INSTALLZENMAP@
INSTALLNDIFF=@INSTALLNDIFF@ INSTALLNDIFF=@INSTALLNDIFF@
INSTALLNPING=@INSTALLNPING@
UNINSTALLZENMAP=@UNINSTALLZENMAP@ UNINSTALLZENMAP=@UNINSTALLZENMAP@
UNINSTALLNPING=@UNINSTALLNPING@
ifneq (@LIBLUA_LIBS@,) ifneq (@LIBLUA_LIBS@,)
NSE_SRC=nse_main.cc nse_nsock.cc nse_fs.cc nse_nmaplib.cc nse_debug.cc nse_pcrelib.cc nse_binlib.cc nse_bit.cc NSE_SRC=nse_main.cc nse_nsock.cc nse_fs.cc nse_nmaplib.cc nse_debug.cc nse_pcrelib.cc nse_binlib.cc nse_bit.cc
@@ -98,7 +102,7 @@ OBJS = main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@ $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
all: @LUA_BUILD@ @PCAP_BUILD@ @PCRE_BUILD@ @DNET_BUILD@ @NBASE_BUILD@ @NSOCK_BUILD@ @NCAT_BUILD@ all: @LUA_BUILD@ @PCAP_BUILD@ @PCRE_BUILD@ @DNET_BUILD@ @NBASE_BUILD@ @NSOCK_BUILD@ @NCAT_BUILD@
$(MAKE) $(TARGET) $(BUILDZENMAP) $(BUILDNDIFF) $(MAKE) $(TARGET) $(BUILDZENMAP) $(BUILDNDIFF) $(BUILDNPING)
$(TARGET): @LUA_DEPENDS@ @PCAP_DEPENDS@ @PCRE_DEPENDS@ @DNET_DEPENDS@ $(NBASEDIR)/libnbase.a $(NSOCKDIR)/src/libnsock.a $(OBJS) $(TARGET): @LUA_DEPENDS@ @PCAP_DEPENDS@ @PCRE_DEPENDS@ @DNET_DEPENDS@ $(NBASEDIR)/libnbase.a $(NSOCKDIR)/src/libnsock.a $(OBJS)
@echo Compiling nmap @echo Compiling nmap
@@ -179,6 +183,8 @@ zenmap_clean:
-cd $(ZENMAPDIR) && $(PYTHON) setup.py clean --all -cd $(ZENMAPDIR) && $(PYTHON) setup.py clean --all
ndiff_clean: ndiff_clean:
-cd $(NDIFFDIR) && $(PYTHON) setup.py clean --all -cd $(NDIFFDIR) && $(PYTHON) setup.py clean --all
nping_clean:
-cd $(NPINGDIR) && $(MAKE) clean
pcap_dist_clean: pcap_dist_clean:
-cd $(LIBPCAPDIR) && $(MAKE) distclean -cd $(LIBPCAPDIR) && $(MAKE) distclean
pcre_dist_clean: pcre_dist_clean:
@@ -197,6 +203,8 @@ zenmap_dist_clean: zenmap_clean
-cd $(ZENMAPDIR) && rm -rf MANIFEST build/ dist/ -cd $(ZENMAPDIR) && rm -rf MANIFEST build/ dist/
ndiff_dist_clean: ndiff_clean ndiff_dist_clean: ndiff_clean
-cd $(NDIFFDIR) && rm -rf build/ dist/ -cd $(NDIFFDIR) && rm -rf build/ dist/
nping_dist_clean:
-cd $(NPINGDIR) && $(MAKE) distclean
debugclean: debugclean:
rm -f *.gcov *.gcda *.gcno gmon.out rm -f *.gcov *.gcda *.gcno gmon.out
@@ -266,6 +274,9 @@ install-zenmap: $(ZENMAPDIR)/setup.py
build-ndiff: build-ndiff:
cd $(NDIFFDIR) && $(PYTHON) setup.py build $(if $(DESTDIR),--executable "$(DEFAULT_PYTHON_PATH)") cd $(NDIFFDIR) && $(PYTHON) setup.py build $(if $(DESTDIR),--executable "$(DEFAULT_PYTHON_PATH)")
build-nping: $(NPINGDIR)/Makefile nbase_build nsock_build
@cd $(NPINGDIR) && $(MAKE)
install-ndiff: install-ndiff:
cd $(NDIFFDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" $(if $(DESTDIR),--root "$(DESTDIR)") cd $(NDIFFDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" $(if $(DESTDIR),--root "$(DESTDIR)")
@@ -293,10 +304,13 @@ install-nse: $(TARGET)
install-ncat: $(NCATDIR)/ncat install-ncat: $(NCATDIR)/ncat
@cd $(NCATDIR) && $(MAKE) install @cd $(NCATDIR) && $(MAKE) install
install: install-nmap $(INSTALLNSE) $(INSTALLZENMAP) @NCAT_INSTALL@ $(INSTALLNDIFF) install-nping: $(NPINGDIR)/nping
@cd $(NPINGDIR) && $(MAKE) install
install: install-nmap $(INSTALLNSE) $(INSTALLZENMAP) @NCAT_INSTALL@ $(INSTALLNDIFF) $(INSTALLNPING)
@echo "NMAP SUCCESSFULLY INSTALLED" @echo "NMAP SUCCESSFULLY INSTALLED"
uninstall: uninstall-nmap $(UNINSTALLZENMAP) @NCAT_UNINSTALL@ uninstall: uninstall-nmap $(UNINSTALLZENMAP) @NCAT_UNINSTALL@ $(UNINSTALLNPING)
uninstall-nmap: uninstall-nmap:
rm -f $(DESTDIR)$(bindir)/$(TARGET) rm -f $(DESTDIR)$(bindir)/$(TARGET)
@@ -316,6 +330,9 @@ uninstall-zenmap:
uninstall-ncat: uninstall-ncat:
@cd $(NCATDIR) && $(MAKE) uninstall @cd $(NCATDIR) && $(MAKE) uninstall
uninstall-nping:
@cd $(NPINGDIR) && $(MAKE) uninstall
${srcdir}/configure: configure.ac ${srcdir}/configure: configure.ac
cd ${srcdir} && autoconf cd ${srcdir} && autoconf

43
configure vendored
View File

@@ -669,13 +669,18 @@ PCRE_BUILD
PCRE_DEPENDS PCRE_DEPENDS
LIBPCREDIR LIBPCREDIR
LIBPCRE_LIBS LIBPCRE_LIBS
subdirs
LIBPCAP_LIBS LIBPCAP_LIBS
PCAP_DIST_CLEAN PCAP_DIST_CLEAN
PCAP_CLEAN PCAP_CLEAN
PCAP_BUILD PCAP_BUILD
PCAP_DEPENDS PCAP_DEPENDS
OPENSSL_LIBS OPENSSL_LIBS
NPING_DIST_CLEAN
NPING_CLEAN
UNINSTALLNPING
INSTALLNPING
BUILDNPING
subdirs
ZENMAP_DIST_CLEAN ZENMAP_DIST_CLEAN
ZENMAP_CLEAN ZENMAP_CLEAN
UNINSTALLZENMAP UNINSTALLZENMAP
@@ -769,6 +774,7 @@ enable_nls
with_localdirs with_localdirs
with_ndiff with_ndiff
with_zenmap with_zenmap
with_nping
with_openssl with_openssl
with_libpcap with_libpcap
with_libpcre with_libpcre
@@ -790,7 +796,8 @@ CXX
CXXFLAGS CXXFLAGS
CCC CCC
CPP' CPP'
ac_subdirs_all='libpcap ac_subdirs_all='nping
libpcap
libpcre libpcre
libdnet-stripped libdnet-stripped
nbase nbase
@@ -1427,6 +1434,7 @@ Optional Packages:
/usr/local/{include,libs} if they exist /usr/local/{include,libs} if they exist
--without-ndiff Skip installation of the Ndiff utility --without-ndiff Skip installation of the Ndiff utility
--without-zenmap Skip installation of the Zenmap graphical frontend --without-zenmap Skip installation of the Zenmap graphical frontend
--without-nping Skip installation of the Nping utility
--with-openssl=DIR Use optional openssl libs and includes from --with-openssl=DIR Use optional openssl libs and includes from
DIR/lib/ and DIR/include/openssl/) DIR/lib/ and DIR/include/openssl/)
--with-libpcap=DIR Look for pcap in DIR/include and DIR/libs. --with-libpcap=DIR Look for pcap in DIR/include and DIR/libs.
@@ -6351,6 +6359,35 @@ fi
# Do they want Nping?
# Check whether --with-nping was given.
if test "${with_nping+set}" = set; then
withval=$with_nping;
else
with_nping=check
fi
if test "$with_nping" = "no"; then
BUILDNPING=""
INSTALLNPING=""
UNINSTALLNPING=""
else
BUILDNPING=build-nping
INSTALLNPING=install-nping
UNINSTALLNPING=uninstall-nping
subdirs="$subdirs nping"
fi
# We test whether they specified openssl desires explicitly # We test whether they specified openssl desires explicitly
use_openssl="yes" use_openssl="yes"
specialssldir="" specialssldir=""
@@ -7243,8 +7280,6 @@ fi
if test $have_libpcap != yes ; then if test $have_libpcap != yes ; then
subdirs="$subdirs libpcap" subdirs="$subdirs libpcap"
fi fi

View File

@@ -236,6 +236,25 @@ AC_SUBST(UNINSTALLZENMAP)
AC_SUBST(ZENMAP_CLEAN) AC_SUBST(ZENMAP_CLEAN)
AC_SUBST(ZENMAP_DIST_CLEAN) AC_SUBST(ZENMAP_DIST_CLEAN)
# Do they want Nping?
AC_ARG_WITH(nping, AC_HELP_STRING([--without-nping], [Skip installation of the Nping utility]), [], [with_nping=check])
if test "$with_nping" = "no"; then
BUILDNPING=""
INSTALLNPING=""
UNINSTALLNPING=""
else
BUILDNPING=build-nping
INSTALLNPING=install-nping
UNINSTALLNPING=uninstall-nping
AC_CONFIG_SUBDIRS(nping)
fi
AC_SUBST(BUILDNPING)
AC_SUBST(INSTALLNPING)
AC_SUBST(UNINSTALLNPING)
AC_SUBST(NPING_CLEAN)
AC_SUBST(NPING_DIST_CLEAN)
# We test whether they specified openssl desires explicitly # We test whether they specified openssl desires explicitly
use_openssl="yes" use_openssl="yes"
specialssldir="" specialssldir=""

View File

@@ -23,6 +23,9 @@ NCAT_STAGING_DIR = Ncat
NDIFF_BUILD_DIR = ndiff-build NDIFF_BUILD_DIR = ndiff-build
NDIFF_STAGING_DIR = Ndiff NDIFF_STAGING_DIR = Ndiff
NPING_BUILD_DIR = nping-build
NPING_STAGING_DIR = Nping
PREFIX = /usr/local PREFIX = /usr/local
PACKAGEMAKER = /Developer/usr/bin/packagemaker PACKAGEMAKER = /Developer/usr/bin/packagemaker
@@ -55,7 +58,7 @@ $(IMAGE_NAME): $(IMAGE_STAGING_DIR)/$(PKG_NAME) $(EXTRA_DIST_FILES)
rm -f $@ rm -f $@
hdiutil create -imagekey zlib-level=9 -srcfolder $(IMAGE_STAGING_DIR) $@ hdiutil create -imagekey zlib-level=9 -srcfolder $(IMAGE_STAGING_DIR) $@
$(IMAGE_STAGING_DIR)/$(PKG_NAME): stage-nmap stage-ncat stage-ndiff stage-zenmap README COPYING.formatted $(IMAGE_STAGING_DIR)/$(PKG_NAME): stage-nmap stage-ncat stage-ndiff stage-zenmap stage-nping README COPYING.formatted
mkdir -p $(IMAGE_STAGING_DIR) mkdir -p $(IMAGE_STAGING_DIR)
$(PACKAGEMAKER) --doc nmap.pmdoc --title "Nmap $(NMAP_VERSION)" -o $@ $(PACKAGEMAKER) --doc nmap.pmdoc --title "Nmap $(NMAP_VERSION)" -o $@
@@ -65,17 +68,23 @@ export-%:
svn export ..@BASE $* svn export ..@BASE $*
stage-nmap: export-$(NMAP_BUILD_DIR) stage-nmap: export-$(NMAP_BUILD_DIR)
cd $(NMAP_BUILD_DIR) && ./configure --without-zenmap --without-ncat --without-ndiff $(CONFIGURE_ARGS) cd $(NMAP_BUILD_DIR) && ./configure --without-zenmap --without-ncat --without-ndiff --without-nping $(CONFIGURE_ARGS)
make -C $(NMAP_BUILD_DIR) make -C $(NMAP_BUILD_DIR)
rm -rf $(NMAP_STAGING_DIR) rm -rf $(NMAP_STAGING_DIR)
make -C $(NMAP_BUILD_DIR) install DESTDIR="`pwd`/$(NMAP_STAGING_DIR)" make -C $(NMAP_BUILD_DIR) install DESTDIR="`pwd`/$(NMAP_STAGING_DIR)"
stage-ncat: export-$(NCAT_BUILD_DIR) stage-ncat: export-$(NCAT_BUILD_DIR)
cd $(NCAT_BUILD_DIR) && ./configure --without-zenmap --with-ncat --without-ndiff $(CONFIGURE_ARGS) cd $(NCAT_BUILD_DIR) && ./configure --without-zenmap --with-ncat --without-ndiff --without-nping $(CONFIGURE_ARGS)
make -C $(NCAT_BUILD_DIR) make -C $(NCAT_BUILD_DIR)
rm -rf $(NCAT_STAGING_DIR) rm -rf $(NCAT_STAGING_DIR)
make -C $(NCAT_BUILD_DIR) install-ncat DESTDIR="`pwd`/$(NCAT_STAGING_DIR)" make -C $(NCAT_BUILD_DIR) install-ncat DESTDIR="`pwd`/$(NCAT_STAGING_DIR)"
stage-nping: export-$(NPING_BUILD_DIR)
cd $(NPING_BUILD_DIR) && ./configure --without-zenmap --without-ncat --without-ndiff --with-nping $(CONFIGURE_ARGS)
make -C $(NPING_BUILD_DIR)
rm -rf $(NPING_STAGING_DIR)
make -C $(NPING_BUILD_DIR) install-nping DESTDIR="`pwd`/$(NPING_STAGING_DIR)"
# make-bundle.sh uses these to build its authorization wrapper. # make-bundle.sh uses these to build its authorization wrapper.
export CC CPPFLAGS CFLAGS CXXFLAGS LDFLAGS export CC CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
@@ -86,7 +95,7 @@ stage-zenmap: export-$(ZENMAP_BUILD_DIR)
cp -rf $(ZENMAP_BUILD_DIR)/zenmap/dist/Zenmap.app $(ZENMAP_STAGING_DIR)/Applications/ cp -rf $(ZENMAP_BUILD_DIR)/zenmap/dist/Zenmap.app $(ZENMAP_STAGING_DIR)/Applications/
stage-ndiff: export-$(NDIFF_BUILD_DIR) stage-ndiff: export-$(NDIFF_BUILD_DIR)
cd $(NDIFF_BUILD_DIR) && ./configure --without-zenmap --without-ncat --with-ndiff $(CONFIGURE_ARGS) cd $(NDIFF_BUILD_DIR) && ./configure --without-zenmap --without-ncat --with-ndiff --without-nping $(CONFIGURE_ARGS)
make -C $(NDIFF_BUILD_DIR) build-ndiff make -C $(NDIFF_BUILD_DIR) build-ndiff
rm -rf $(NDIFF_STAGING_DIR) rm -rf $(NDIFF_STAGING_DIR)
make -C $(NDIFF_BUILD_DIR) install-ndiff DESTDIR="`pwd`/$(NDIFF_STAGING_DIR)" make -C $(NDIFF_BUILD_DIR) install-ndiff DESTDIR="`pwd`/$(NDIFF_STAGING_DIR)"
@@ -113,6 +122,8 @@ clean:
rm -rf $(NCAT_STAGING_DIR) rm -rf $(NCAT_STAGING_DIR)
rm -rf $(NDIFF_BUILD_DIR) rm -rf $(NDIFF_BUILD_DIR)
rm -rf $(NDIFF_STAGING_DIR) rm -rf $(NDIFF_STAGING_DIR)
rm -rf $(NPING_BUILD_DIR)
rm -rf $(NPING_STAGING_DIR)
rm -f COPYING.formatted rm -f COPYING.formatted
rm -f $(IMAGE_NAME) rm -f $(IMAGE_NAME)

View File

@@ -1,7 +1,7 @@
Nmap is a free and open source utility for network exploration and security auditing. Zenmap is a multi-platform graphical frontend and results viewer for Nmap. Ncat is a general-purpose network sending and receiving utility, a reimplementation of Netcat. Ndiff is a an Nmap scan comparison utility. Nmap is a free and open source utility for network exploration and security auditing. Zenmap is a multi-platform graphical frontend and results viewer for Nmap. Ncat is a general-purpose network sending and receiving utility, a reimplementation of Netcat. Ndiff is a an Nmap scan comparison utility. Nping is a tool for packet generation and sending.
This package contains Nmap, Zenmap, Ncat, and Ndiff. It is intended to work on Intel and PowerPC Macs running Mac OS X 10.4 or later. This package contains Nmap, Zenmap, Ncat, Ndiff, and Nping. It is intended to work on Intel and PowerPC Macs running Mac OS X 10.4 or later.
Installation of all packages is optional. Unselect Zenmap to get just the command-line tool. Unselect Nmap if you prefer to use a copy of Nmap that is already installed. Zenmap will not work without Nmap. Installation of all packages is optional. Unselect Zenmap to get just the command-line tool. Unselect Nmap if you prefer to use a copy of Nmap that is already installed. Zenmap will not work without Nmap.
The nmap, ncat, and ndiff command-line binaries will be installed in /usr/local/bin, and additional support files will be installed in /usr/local/share. The Zenmap application bundle will be installed in /Applications/Zenmap.app. The nmap, ncat, ndiff, and nping command-line binaries will be installed in /usr/local/bin, and additional support files will be installed in /usr/local/share. The Zenmap application bundle will be installed in /Applications/Zenmap.app.

View File

@@ -0,0 +1,3 @@
<pkg-contents spec="1.12">
<f n="Nping" pt="Nping" m="false" t="file"/>
</pkg-contents>

View File

@@ -0,0 +1,25 @@
<pkgref spec="1.12" uuid="A488395A-3951-449A-B3F6-A74D5E926D69">
<config>
<identifier>org.insecure.nping.nping.pkg</identifier>
<version>1</version>
<description />
<post-install type="none" />
<requireAuthorization />
<installFrom relative="true" includeRoot="false">Nping</installFrom>
<installTo>/</installTo>
<flags>
<followSymbolicLinks />
</flags>
<packageStore type="internal" />
<mod>parent</mod>
<mod>installFrom.isRelativeType</mod>
</config>
<contents>
<file-list>01nping-contents.xml</file-list>
<filter>/CVS$</filter>
<filter>/\.svn$</filter>
<filter>/\.cvsignore$</filter>
<filter>/\.cvspass$</filter>
<filter>/\.DS_Store$</filter>
</contents>
</pkgref>

View File

@@ -31,6 +31,11 @@
starts_enabled="true" starts_hidden="false"> starts_enabled="true" starts_hidden="false">
<pkgref id="org.insecure.nmap.ndiff.pkg" /> <pkgref id="org.insecure.nmap.ndiff.pkg" />
</choice> </choice>
<choice title="Nping" id="choice96" starts_selected="true"
description="Nping packet generator."
starts_enabled="true" starts_hidden="false">
<pkgref id="org.insecure.nmap.nping.pkg" />
</choice>
</contents> </contents>
<resources bg-scale="none" bg-align="topleft"> <resources bg-scale="none" bg-align="topleft">
<locale lang="en"> <locale lang="en">
@@ -43,6 +48,7 @@
<item type="file">02zenmap.xml</item> <item type="file">02zenmap.xml</item>
<item type="file">03ncat.xml</item> <item type="file">03ncat.xml</item>
<item type="file">04ndiff.xml</item> <item type="file">04ndiff.xml</item>
<item type="file">05nping.xml</item>
<mod>properties.customizeOption</mod> <mod>properties.customizeOption</mod>
<mod>properties.title</mod> <mod>properties.title</mod>
<mod>properties.anywhereDomain</mod> <mod>properties.anywhereDomain</mod>

View File

@@ -32,6 +32,7 @@ winbuild:
cp vcredist_x86.exe nmap-$(NMAP_VERSION) cp vcredist_x86.exe nmap-$(NMAP_VERSION)
cp ../ncat/Release/ncat.exe nmap-$(NMAP_VERSION) cp ../ncat/Release/ncat.exe nmap-$(NMAP_VERSION)
cp ../ncat/Release/ca-bundle.crt nmap-$(NMAP_VERSION) cp ../ncat/Release/ca-bundle.crt nmap-$(NMAP_VERSION)
cp ../nping/Release/nping.exe nmap-$(NMAP_VERSION)
# Install the ndiff batch file wrapper in the zip distribution. # Install the ndiff batch file wrapper in the zip distribution.
cp ../ndiff/ndiff nmap-$(NMAP_VERSION)/ndiff.py cp ../ndiff/ndiff nmap-$(NMAP_VERSION)/ndiff.py
cp python-wrap.bat nmap-$(NMAP_VERSION)/ndiff.bat cp python-wrap.bat nmap-$(NMAP_VERSION)/ndiff.bat
@@ -48,5 +49,5 @@ winbuild:
mv nmap-$(NMAP_VERSION)/NmapInstaller.exe nmap-$(NMAP_VERSION)-setup.exe mv nmap-$(NMAP_VERSION)/NmapInstaller.exe nmap-$(NMAP_VERSION)-setup.exe
clean: clean:
$(VCEXPRESS) nmap.sln /clean "$(VCEXPRESS)" nmap.sln /clean
rm -rf Debug Release nmapbuild.log rm -rf Debug Release nmapbuild.log

View File

@@ -28,6 +28,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ncat", "..\ncat\ncat.vcproj
{B630C8F7-3138-43E8-89ED-78742FA2AC5F} = {B630C8F7-3138-43E8-89ED-78742FA2AC5F} {B630C8F7-3138-43E8-89ED-78742FA2AC5F} = {B630C8F7-3138-43E8-89ED-78742FA2AC5F}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nping", "..\nping\nping.vcproj", "{CDB10BBA-9085-4B9B-AC8F-BA31D3906B36}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32 Debug|Win32 = Debug|Win32
@@ -62,6 +64,10 @@ Global
{C1E04411-E021-468B-83F1-CB624BBA7589}.Debug|Win32.Build.0 = Debug|Win32 {C1E04411-E021-468B-83F1-CB624BBA7589}.Debug|Win32.Build.0 = Debug|Win32
{C1E04411-E021-468B-83F1-CB624BBA7589}.Release|Win32.ActiveCfg = Release|Win32 {C1E04411-E021-468B-83F1-CB624BBA7589}.Release|Win32.ActiveCfg = Release|Win32
{C1E04411-E021-468B-83F1-CB624BBA7589}.Release|Win32.Build.0 = Release|Win32 {C1E04411-E021-468B-83F1-CB624BBA7589}.Release|Win32.Build.0 = Release|Win32
{CDB10BBA-9085-4B9B-AC8F-BA31D3906B36}.Debug|Win32.ActiveCfg = Debug|Win32
{CDB10BBA-9085-4B9B-AC8F-BA31D3906B36}.Debug|Win32.Build.0 = Debug|Win32
{CDB10BBA-9085-4B9B-AC8F-BA31D3906B36}.Release|Win32.ActiveCfg = Release|Win32
{CDB10BBA-9085-4B9B-AC8F-BA31D3906B36}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@@ -24,8 +24,8 @@
;Get installation folder from registry if available ;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Nmap" "" InstallDirRegKey HKCU "Software\Nmap" ""
!define VERSION "5.10BETA2" !define VERSION "5.21"
VIProductVersion "5.10.0.2" VIProductVersion "5.21.0.0"
VIAddVersionKey /LANG=1033 "FileVersion" "${VERSION}" VIAddVersionKey /LANG=1033 "FileVersion" "${VERSION}"
VIAddVersionKey /LANG=1033 "ProductName" "Nmap" VIAddVersionKey /LANG=1033 "ProductName" "Nmap"
VIAddVersionKey /LANG=1033 "CompanyName" "Insecure.org" VIAddVersionKey /LANG=1033 "CompanyName" "Insecure.org"
@@ -288,6 +288,12 @@ Section "Ndiff (Scan comparison tool)" SecNdiff
File /r ..\nmap-${VERSION}\py2exe File /r ..\nmap-${VERSION}\py2exe
SectionEnd SectionEnd
Section "Nping (Packet generator)" SecNping
SetOutPath "$INSTDIR"
SetOverwrite on
File ..\nmap-${VERSION}\nping.exe
SectionEnd
;-------------------------------- ;--------------------------------
;Descriptions ;Descriptions
@@ -299,6 +305,7 @@ SectionEnd
LangString DESC_SecZenmap ${LANG_ENGLISH} "Installs Zenmap, the official Nmap graphical user interface. Recommended." LangString DESC_SecZenmap ${LANG_ENGLISH} "Installs Zenmap, the official Nmap graphical user interface. Recommended."
LangString DESC_SecNcat ${LANG_ENGLISH} "Installs Ncat, Nmap's Netcat replacement." LangString DESC_SecNcat ${LANG_ENGLISH} "Installs Ncat, Nmap's Netcat replacement."
LangString DESC_SecNdiff ${LANG_ENGLISH} "Installs Ndiff, a tool for comparing Nmap XML files." LangString DESC_SecNdiff ${LANG_ENGLISH} "Installs Ndiff, a tool for comparing Nmap XML files."
LangString DESC_SecNping ${LANG_ENGLISH} "Installs Nping, a packet generation tool."
;Assign language strings to sections ;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
@@ -309,6 +316,7 @@ SectionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${SecZenmap} $(DESC_SecZenmap) !insertmacro MUI_DESCRIPTION_TEXT ${SecZenmap} $(DESC_SecZenmap)
!insertmacro MUI_DESCRIPTION_TEXT ${SecNcat} $(DESC_SecNcat) !insertmacro MUI_DESCRIPTION_TEXT ${SecNcat} $(DESC_SecNcat)
!insertmacro MUI_DESCRIPTION_TEXT ${SecNdiff} $(DESC_SecNdiff) !insertmacro MUI_DESCRIPTION_TEXT ${SecNdiff} $(DESC_SecNdiff)
!insertmacro MUI_DESCRIPTION_TEXT ${SecNping} $(DESC_SecNping)
!insertmacro MUI_FUNCTION_DESCRIPTION_END !insertmacro MUI_FUNCTION_DESCRIPTION_END
;-------------------------------- ;--------------------------------
;Uninstaller Section ;Uninstaller Section