From dee5ce0fc6d8b6c1c551dd2624dd7bf08e2f8fca Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 5 Dec 2011 01:06:10 -0800 Subject: [PATCH] Added net-analyzer/theHarvester, to be continued... --- net-analyzer/theHarvester/Manifest | 2 + .../theHarvester/theHarvester-2.1.ebuild | 59 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 net-analyzer/theHarvester/Manifest create mode 100644 net-analyzer/theHarvester/theHarvester-2.1.ebuild diff --git a/net-analyzer/theHarvester/Manifest b/net-analyzer/theHarvester/Manifest new file mode 100644 index 0000000..3b702dc --- /dev/null +++ b/net-analyzer/theHarvester/Manifest @@ -0,0 +1,2 @@ +DIST theHarvester-2.1_BH2011_Arsenal.tar 353792 RMD160 b0c216e846dd5aa6f25f610b7941b3c5264e349c SHA1 cf05c75aa8b38c7c696d980168888fdcc377f142 SHA256 f6dbb876082680dd540a94169cb0b5c27d93b6abd07c7b6610df0cfd6c022f5b +EBUILD theHarvester-2.1.ebuild 1564 RMD160 ab77bd37e20ac0bf2a45024203d29f2ff747a226 SHA1 9b916dc054087c6487149d476608e63c60a15200 SHA256 c886004f0bc655c4c398cefee1c6e112583ccf3156250382aa8065ea8a9eda54 diff --git a/net-analyzer/theHarvester/theHarvester-2.1.ebuild b/net-analyzer/theHarvester/theHarvester-2.1.ebuild new file mode 100644 index 0000000..8f20d18 --- /dev/null +++ b/net-analyzer/theHarvester/theHarvester-2.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +SUPPORT_PYTHON_ABIS="1" + +inherit python + +DESCRIPTION="The Harvester is a tool designed to collect email accounts of the target domain" +HOMEPAGE="http://www.edge-security.com/theHarvester.php" +# SRC_URI="http://theharvester.googlecode.com/files/${PN}-ng-${PV}.tar" +SRC_URI="http://theharvester.googlecode.com/files/theHarvester-2.1_BH2011_Arsenal.tar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +EAPI="3" + +DEPEND="" +RDEPEND="" + +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}"/"${PN}-ng-blackhat" + +src_prepare() { + python_convert_shebangs 2 theHarvester.py; +} + +src_install() { + installation() { + insinto $(python_get_sitedir)/${PN} + doins myparser.py + doins theHarvester.py + insinto $(python_get_sitedir)/${PN}/discovery + doins discovery/*.py + insinto $(python_get_sitedir)/${PN}/discovery/DNS + doins discovery/DNS/*.py + insinto $(python_get_sitedir)/${PN}/discovery/shodan + doins discovery/shodan/*.py + insinto $(python_get_sitedir)/${PN}/lib + doins lib/*.py + } + + python_execute_function installation + dobin theHarvester.py + insinto /usr/share/"${PN}" + doins dns-names.txt + doins discovery/nameservers.txt +} + +pkg_postinst() { + python_mod_optimize ${PN}/discovery ${PN}/discovery/DNS ${PN}/discovery/shodan ${PN}/lib ${PN}/theHarvester.py ${PN}/myparser.py +} + +pkg_postrm() { + python_mod_cleanup ${PN}/discovery ${PN}/discovery/DNS ${PN}/discovery/shodan ${PN}/lib ${PN}/theHarvester.py ${PN}/myparser.py +}