From c576b6d2ac2ca3ec4c6e05ca89446f6e4e0c3bf8 Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Fri, 10 Apr 2020 18:07:45 +0300 Subject: [PATCH] net-analyzer/dnsrecon: bump to 0.10.0_p20200409 --- net-analyzer/dnsrecon/Manifest | 2 +- .../dnsrecon/dnsrecon-0.10.0_p20200409.ebuild | 38 +++++++++++++++++++ .../dnsrecon-0.10.0_p20200409-pentoo.patch | 25 ++++++++++++ net-analyzer/dnsrecon/metadata.xml | 8 ++++ 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 net-analyzer/dnsrecon/dnsrecon-0.10.0_p20200409.ebuild create mode 100644 net-analyzer/dnsrecon/files/dnsrecon-0.10.0_p20200409-pentoo.patch create mode 100644 net-analyzer/dnsrecon/metadata.xml diff --git a/net-analyzer/dnsrecon/Manifest b/net-analyzer/dnsrecon/Manifest index fe3a6cf3e..bde68a0c3 100644 --- a/net-analyzer/dnsrecon/Manifest +++ b/net-analyzer/dnsrecon/Manifest @@ -1,2 +1,2 @@ -DIST dnsrecon-0.8.14.tar.gz 639761 BLAKE2B 3e2bc152702318f192608cdd9a036347f89afab0cc233acb5fa0213a468a5247e72990e3c39592c21a7754c65cc5a9f98de5c8f71e2a2c8e4e8cf7ab0a1f9bfd SHA512 8f881527a4d36cf504a470f2aef374b6003d580eb205554b3c590d43b4772d0b042f280ab43ba84ee1b6d22c64241b9f0a98a4d42655ccff8d266d89699c7671 +DIST dnsrecon-0.10.0_p20200409.tar.gz 641390 BLAKE2B 3f424aec65cf8f1f46c60a41c08ec571ced0eaa34d63df31105d2815765a53ec7eaf1258f8f684a613f4f23e89b9e59c87ae84213726c4ede0da86fb62a0bf9f SHA512 10a7096991f991bed3bff86e5e11140e71f982b74bdeae1da0bc182e1dae70a6f81b4abae05c045722e761c234d14f77eba3cfd7869d50a4bd9e35d0fbc29a44 DIST dnsrecon-0.9.1.tar.gz 640877 BLAKE2B 3a7aac2bd2d425248d6be346c37826cbd1d13c0554232631e00a7d1daf7c951166fc46d9d47e8854484c9b0b080246263558106c17ab20e88d46ca7fdea6d22e SHA512 1b0ed1b405e58f8df7a8e1fb8a2dd07713bf5e8434ccfbced316cac8b16966b88a98f583be122c35bfbc540753bd44e5e47474aa58544dbea77e73d0cddc4c6b diff --git a/net-analyzer/dnsrecon/dnsrecon-0.10.0_p20200409.ebuild b/net-analyzer/dnsrecon/dnsrecon-0.10.0_p20200409.ebuild new file mode 100644 index 000000000..d66d29afa --- /dev/null +++ b/net-analyzer/dnsrecon/dnsrecon-0.10.0_p20200409.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +HOMEPAGE="https://github.com/darkoperator/dnsrecon" +DESCRIPTION="DNS Enumeration Script" + +HASH_COMMIT="b4566da96178cba499d8ff8481e4d29ee3025504" +SRC_URI="https://github.com/darkoperator/dnsrecon/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" + +# For testing +#KEYWORDS="~amd64 ~arm ~x86" + +RDEPEND="${PYTHON_DEPS} + dev-python/dnspython[${PYTHON_USEDEP}] + dev-python/netaddr[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${P}-pentoo.patch" ) + +S="${WORKDIR}/${PN}-${HASH_COMMIT}" + +python_install() { + distutils-r1_python_install + python_foreach_impl python_newscript dnsrecon.py dnsrecon + python_foreach_impl python_newscript tools/parser.py dnsrecon-parser + + dodoc -r msf_plugin/ *.md +} diff --git a/net-analyzer/dnsrecon/files/dnsrecon-0.10.0_p20200409-pentoo.patch b/net-analyzer/dnsrecon/files/dnsrecon-0.10.0_p20200409-pentoo.patch new file mode 100644 index 000000000..2ebd07284 --- /dev/null +++ b/net-analyzer/dnsrecon/files/dnsrecon-0.10.0_p20200409-pentoo.patch @@ -0,0 +1,25 @@ +diff -ur a/dnsrecon.py b/dnsrecon.py +--- a/dnsrecon.py 2020-04-09 03:48:03.000000000 +0300 ++++ b/dnsrecon.py 2020-04-09 11:20:34.792454963 +0300 +@@ -1599,9 +1599,8 @@ + json_file is not None): + returned_records.extend(brt_enum_records) + 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("Using file provided with tool: " + name_list_dic) + brt_enum_records = brute_domain(res, name_list_dic, domain, wildcard_filter, verbose, +diff -ur a/setup.py b/setup.py +--- a/setup.py 2020-04-09 03:48:03.000000000 +0300 ++++ b/setup.py 2020-04-09 11:25:16.142315777 +0300 +@@ -23,6 +23,7 @@ + python_requires='>=3.6', + data_files=[ + ('/etc/dnsrecon', [ ++ 'namelist.txt', + 'snoop.txt', + 'subdomains-top1mil-20000.txt', + 'subdomains-top1mil-5000.txt', diff --git a/net-analyzer/dnsrecon/metadata.xml b/net-analyzer/dnsrecon/metadata.xml new file mode 100644 index 000000000..4fa8ff351 --- /dev/null +++ b/net-analyzer/dnsrecon/metadata.xml @@ -0,0 +1,8 @@ + + + + + proxy-maint@gentoo.org + Proxy Maintainers + +