theharvester 3.0.1
Closes #33880. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
14d03f35f2
commit
dceffbc5be
1 changed files with 9 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
class Theharvester < Formula
|
||||
desc "Gather materials from public sources (for pen testers)"
|
||||
homepage "http://www.edge-security.com/theharvester.php"
|
||||
url "https://github.com/laramies/theHarvester/archive/2.7.tar.gz"
|
||||
sha256 "dc0ff455ac5c41d53709cfc1de65dac7e96d2d9c33f9706789cca106d5a5ee76"
|
||||
url "https://github.com/laramies/theHarvester/archive/v3.0.1.tar.gz"
|
||||
sha256 "0e19a2f18459c9902792648b5fd65449c8702e61094fbb34edeed02bb8899af4"
|
||||
head "https://github.com/laramies/theHarvester.git"
|
||||
|
||||
bottle do
|
||||
|
@ -15,7 +15,7 @@ class Theharvester < Formula
|
|||
sha256 "56c3d5b41a821be12fc6f27ac8beb266984f0c245495c9970614ed776107633f" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "python@2"
|
||||
depends_on "python"
|
||||
|
||||
resource "requests" do
|
||||
url "https://files.pythonhosted.org/packages/49/6f/183063f01aae1e025cf0130772b55848750a2f3a89bfa11b385b35d7329d/requests-2.10.0.tar.gz"
|
||||
|
@ -23,10 +23,13 @@ class Theharvester < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
||||
xy = Language::Python.major_minor_version "python3"
|
||||
ENV["PYTHONPATH"] = libexec/"lib/python#{xy}/site-packages"
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages"
|
||||
|
||||
resources.each do |r|
|
||||
r.stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
system "python3", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -36,7 +39,7 @@ class Theharvester < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
output = shell_output("#{bin}/theharvester -d brew.sh -l 1 -b all 2>&1")
|
||||
output = shell_output("#{bin}/theharvester -d brew.sh -l 1 -b pgp 2>&1")
|
||||
assert_match "security@brew.sh", output
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue