This commit is contained in:
blshkv 2018-02-01 09:26:23 +08:00
parent aaeefa7d7d
commit dc36aa449d
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 30 additions and 28 deletions

View file

@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@ -12,11 +12,9 @@ SRC_URI="https://github.com/mschwager/fierce/archive/${PV}.tar.gz -> ${P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
#RDEPEND="dev-perl/Net-DNS"
RDEPEND="virtual/python-dnspython[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

View file

@ -0,0 +1,28 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{5,6} )
inherit distutils-r1 git-r3
DESCRIPTION="Fierce is a DNS reconnaissance tool written in perl"
HOMEPAGE="https://github.com/mschwager/fierce"
EGIT_REPO_URI="https://github.com/mschwager/fierce.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="virtual/python-dnspython[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
python_prepare_all() {
sed -i -e "s|dnspython==1.15.0|dnspython|" requirements.txt || die
# #https://github.com/mschwager/fierce/issues/25
# sed -i -e "s|os.path.dirname(__file__)|\"/usr/share/fierce/\"|" fierce.py || die
# sed -i -e "s|'lists', data|'share/fierce/lists', data|" setup.py || die
distutils-r1_python_prepare_all
}

View file

@ -1,24 +0,0 @@
--- fierce.pl.orig 2008-04-06 18:04:55.000000000 +0000
+++ fierce.pl 2008-12-02 14:10:38.000000000 +0000
@@ -243,10 +243,10 @@
output("\nUnsuccessful in zone transfer (it was worth a shot)");
}
output("Okay, trying the good old fashioned way... brute force");
- $wordlist = $wordlist || 'hosts.txt';
+ $wordlist = $wordlist || '/usr/share/fierce/hosts.txt';
if (-e $wordlist) {
open (WORDLIST, '<', $wordlist) or
- open (WORDLIST, '<', 'hosts.txt') or
+ open (WORDLIST, '<', '/usr/share/fierce/hosts.txt') or
quit_early("Can't open $wordlist or the default wordlist");
for (<WORDLIST>){
chomp;
@@ -625,6 +625,8 @@
-wordlist Use a seperate wordlist (one word per line). Usage:
perl fierce.pl -dns examplecompany.com -wordlist dictionary.txt
+
+ Default hosts list is in /usr/share/fierce/hosts.txt
EOHELP
exit;
}