diff options
Diffstat (limited to 'network/dnsmap')
-rw-r--r-- | network/dnsmap/README | 10 | ||||
-rw-r--r-- | network/dnsmap/dnsmap.SlackBuild | 16 |
2 files changed, 18 insertions, 8 deletions
diff --git a/network/dnsmap/README b/network/dnsmap/README index 7796d68b71..c6a80020f6 100644 --- a/network/dnsmap/README +++ b/network/dnsmap/README @@ -1,5 +1,5 @@ -dnsmap is mainly meant to be used by pentesters during the information -gathering/enumeration phase of infrastructure security assessments. -During the enumeration stage, the security consultant would typically -discover the target company's IP netblocks, domain names, phone numbers, -etc ... +dnsmap is mainly meant to be used by pentesters during the information +gathering/enumeration phase of infrastructure security assessments. +During the enumeration stage, the security consultant would typically +discover the target company's IP netblocks, domain names, phone +numbers, etc ... diff --git a/network/dnsmap/dnsmap.SlackBuild b/network/dnsmap/dnsmap.SlackBuild index ae866d3b9e..a82e53094b 100644 --- a/network/dnsmap/dnsmap.SlackBuild +++ b/network/dnsmap/dnsmap.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for dnsmap @@ -20,10 +20,13 @@ # 0. You just DO WHAT THE FUCK YOU WANT TO. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=dnsmap VERSION=${VERSION:-0.30} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -33,7 +36,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -84,4 +94,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |