Completed theHarvester ebuild

This commit is contained in:
Stefan Reimer 2011-12-07 21:07:42 -08:00
parent dee5ce0fc6
commit 3dd6bb8208
3 changed files with 33 additions and 5 deletions

View File

@ -1,2 +1,3 @@
AUX dns-names_path.patch 1010 RMD160 b9a8f2968607f15da3a693219be3be521686f3ee SHA1 368c644600cbf74834f3bc8278daead1a702fc6c SHA256 7c6eec96da93c17e18b55661176fb327fc146c5a6c50acc3190a08ce3f27b9fa
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
EBUILD theHarvester-2.1.ebuild 1716 RMD160 7935f5fb9b0de28b360a2cfc055e3fa87234f293 SHA1 a32ce88bc86c2e6b1fd0559abc592176b35a599f SHA256 7e6a4ecb575e22bd5749f29f4385ee6aba09298c18884b287174c1ed7d35f777

View File

@ -0,0 +1,23 @@
--- theHarvester-ng-blackhat.orig/discovery/dnssearch-threads.py 2011-07-27 08:45:21.000000000 -0700
+++ theHarvester-ng-blackhat/discovery/dnssearch-threads.py 2011-12-07 20:57:26.916821679 -0800
@@ -63,7 +63,7 @@
def __init__(self,domain,dnsserver,verbose=False):
self.domain=domain
self.server = dnsserver
- self.file="dns-names.txt"
+ self.file="/usr/share/theHarvester/dns-names.txt"
self.subdo = False
self.verbose = verbose
try:
diff -ur theHarvester-ng-blackhat.orig/discovery/dnssearch.py theHarvester-ng-blackhat/discovery/dnssearch.py
--- theHarvester-ng-blackhat.orig/discovery/dnssearch.py 2011-07-27 08:45:21.000000000 -0700
+++ theHarvester-ng-blackhat/discovery/dnssearch.py 2011-12-07 20:57:07.196822097 -0800
@@ -61,7 +61,7 @@
def __init__(self,domain,dnsserver,verbose=False):
self.domain=domain
self.nameserver = dnsserver
- self.file="dns-names.txt"
+ self.file="/usr/share/theHarvester/dns-names.txt"
self.subdo = False
self.verbose = verbose
try:

View File

@ -4,7 +4,7 @@
SUPPORT_PYTHON_ABIS="1"
inherit python
inherit eutils python
DESCRIPTION="The Harvester is a tool designed to collect email accounts of the target domain"
HOMEPAGE="http://www.edge-security.com/theHarvester.php"
@ -25,6 +25,8 @@ RESTRICT_PYTHON_ABIS="3.*"
S="${WORKDIR}"/"${PN}-ng-blackhat"
src_prepare() {
epatch "${FILESDIR}"/dns-names_path.patch
python_convert_shebangs 2 theHarvester.py;
}
@ -32,7 +34,8 @@ src_install() {
installation() {
insinto $(python_get_sitedir)/${PN}
doins myparser.py
doins theHarvester.py
exeinto $(python_get_sitedir)/${PN}
doexe theHarvester.py
insinto $(python_get_sitedir)/${PN}/discovery
doins discovery/*.py
insinto $(python_get_sitedir)/${PN}/discovery/DNS
@ -41,13 +44,14 @@ src_install() {
doins discovery/shodan/*.py
insinto $(python_get_sitedir)/${PN}/lib
doins lib/*.py
dosym $(python_get_sitedir)/${PN}/theHarvester.py /usr/bin/theHarvester.py
}
python_execute_function installation
dobin theHarvester.py
insinto /usr/share/"${PN}"
doins dns-names.txt
doins discovery/nameservers.txt
# doins discovery/nameservers.txt
}
pkg_postinst() {