ports/net-mgmt/dnsmap/files/patch-dnsmap-bulk.sh
Nikolai Lifanov befb53d1fa add net-mgmt/dnsmap : DNS domain name brute forcing tool
PR:		208732
Submitted by:	Rihaz Jerrin <rihaz.jerrin@gmail.com>
Reviewed by:	matthew
Approved by:	matthew (mentor)
Differential Revision:	https://reviews.freebsd.org/D9064
2017-01-06 19:56:11 +00:00

23 lines
434 B
Bash

--- dnsmap-bulk.sh.orig 2016-04-11 23:06:01 UTC
+++ dnsmap-bulk.sh
@@ -1,5 +1,5 @@
-#!/bin/bash
-if [[ $# -ne 1 && $# -ne 2 ]]
+#!/bin/sh
+if [ $# -ne 1 -a $# -ne 2 ]
then
echo "usage: `basename $0` <domains-file> [results-path]";
echo "e.g.:";
@@ -9,10 +9,10 @@ then
fi
for i in `cat $1`
do
- if [[ $# -eq 1 ]]
+ if [ $# -eq 1 ]
then
dnsmap $i
- elif [[ $# -eq 2 ]]
+ elif [ $# -eq 2 ]
then
dnsmap $i -r $2
fi