homebrew-core/Formula/exploitdb.rb
2016-06-13 03:18:54 +01:00

27 lines
939 B
Ruby

class Exploitdb < Formula
desc "The official Exploit Database"
homepage "https://www.exploit-db.com/"
url "https://github.com/offensive-security/exploit-database.git",
:tag => "2016-06-11",
:revision => "4bc4dc0218bc10545d4b89c279b78a0319a9a6f1"
version "2016-06-11"
head "https://github.com/offensive-security/exploit-database.git"
bottle do
cellar :any_skip_relocation
sha256 "f0c6b6eafd94383fe782f3331c562e5824516b6886598346e3786ef53b7e333f" => :el_capitan
sha256 "95ca9a6f30bc1e161cb2a598ca3db62be2eee83970a0759c1d759fdd886e1a09" => :yosemite
sha256 "f675d1a90e662f461d2c9ef8f0680f81eae13d0ffecb9fcaa83c6acd47e1bfe7" => :mavericks
end
def install
inreplace "searchsploit", "gitpath=\"/usr/share/exploitdb\"", "gitpath=\"#{pkgshare}\""
bin.install "searchsploit"
pkgshare.install %w[files.csv platforms .git]
end
test do
system "#{bin}/searchsploit", "sendpage"
end
end