homebrew-core/Formula/exploitdb.rb

27 lines
936 B
Ruby
Raw Normal View History

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-12-07",
:revision => "5dc941e36b8fd6925d7d8f687b429c68877f9d9a"
version "2016-12-07"
head "https://github.com/offensive-security/exploit-database.git"
2016-03-25 10:12:10 +00:00
bottle do
cellar :any_skip_relocation
2016-12-07 09:59:38 +00:00
sha256 "15a3eaa2f183504132fb142bfea3958fdde1552b49a254f0c57a3a214545fab0" => :sierra
sha256 "e80a21c90c6a192268e80985d3f951a5ab5a6cfd10db22654d77d29e74053fb0" => :el_capitan
sha256 "ae9d16f55c664ad6cd185e87927677346f9b98968368408f18a316025940bece" => :yosemite
2016-03-25 10:12:10 +00:00
end
def install
inreplace "searchsploit", "gitpath=\"/opt/exploit-database\"", "gitpath=\"#{pkgshare}\""
bin.install "searchsploit"
pkgshare.install %w[files.csv platforms .git]
end
test do
system "#{bin}/searchsploit", "sendpage"
end
end