dnsrecon-0.10.0.ebuild

This commit is contained in:
blshkv 2021-02-08 23:00:25 +08:00
parent cacf657f38
commit 812193a5da
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 27 additions and 10 deletions

View file

@ -1,2 +1,2 @@
DIST dnsrecon-0.10.0_p20200409.tar.gz 641371 BLAKE2B af03db63c4274b9bf1829d0fe4d8baacffe54b98bbc5fe85263fb7c73097436410eb04fd8480ba115c9b3f68579c1047e9d7c7b970961c4fc12ed0b64cec1b4e SHA512 7b20dc60bc6b5426c33a1e5a6a9011f6f94e8d213b9752936f652443a6347b700d2ea68751e2902985980bf51d3bcd7b124577c2bc71b26117896323f0aa892f
DIST dnsrecon-0.10.0.tar.gz 638919 BLAKE2B 624a832e7681821a3e15f39dff0dbb86b67cb96b3d36b4774caea8f8b64f6eb14b2d69dfc23c3c60849119d920a28916963e71e26d0c34c54236fb809b32ce50 SHA512 ce4c98c7dc4120ab95fe042406f7f70fc570d4755bf1e014654c250b83e8dd13fa572cf68dba301fd80acee5480e6dd2daf2d593833cf514fa74294ac2d99f91
DIST dnsrecon-0.9.1.tar.gz 640877 BLAKE2B 3a7aac2bd2d425248d6be346c37826cbd1d13c0554232631e00a7d1daf7c951166fc46d9d47e8854484c9b0b080246263558106c17ab20e88d46ca7fdea6d22e SHA512 1b0ed1b405e58f8df7a8e1fb8a2dd07713bf5e8434ccfbced316cac8b16966b88a98f583be122c35bfbc540753bd44e5e47474aa58544dbea77e73d0cddc4c6b

View file

@ -1,23 +1,21 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
HOMEPAGE="https://github.com/darkoperator/dnsrecon"
DESCRIPTION="DNS Enumeration Script"
HASH_COMMIT="834ebe6c11f70e42a779b48d2cb67c9e21812ea5"
SRC_URI="https://github.com/darkoperator/dnsrecon/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/darkoperator/dnsrecon/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
# For testing
#KEYWORDS="~amd64 ~arm ~x86"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND="${PYTHON_DEPS}
dev-python/dnspython[${PYTHON_USEDEP}]
@ -25,9 +23,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/lxml[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-pentoo.patch" )
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
PATCHES=( "${FILESDIR}/dnsrecon-0.10.0_namelist.patch" )
python_install() {
distutils-r1_python_install

View file

@ -0,0 +1,21 @@
--- a/dnsrecon.py.orig 2021-02-08 04:24:09.000000000 +0800
+++ b/dnsrecon.py 2021-02-08 22:20:01.881884522 +0800
@@ -1551,7 +1551,7 @@
elif domain is not None:
script_dir = os.path.dirname(os.path.realpath(__file__)) + os.sep
print_status("No file was specified with domains to check.")
- name_list_dic = script_dir + "namelist.txt"
+ name_list_dic = "/etc/dnsrecon/namelist.txt"
if os.path.isfile(name_list_dic):
print_status(f"Using file provided with tool: {name_list_dic}")
brt_enum_records = brute_domain(res, name_list_dic, domain, wildcard_filter, verbose,
--- a/setup.py.orig 2021-02-08 04:24:09.000000000 +0800
+++ b/setup.py 2021-02-08 22:20:24.885884019 +0800
@@ -24,6 +24,7 @@
python_requires='>=3.6',
data_files=[
('/etc/dnsrecon', [
+ 'namelist.txt',
'snoop.txt',
'subdomains-top1mil-20000.txt',
'subdomains-top1mil-5000.txt',