2016-03-21 06:51:31 +00:00
|
|
|
class Exploitdb < Formula
|
|
|
|
desc "The official Exploit Database"
|
|
|
|
homepage "https://www.exploit-db.com/"
|
|
|
|
url "https://github.com/offensive-security/exploit-database.git",
|
2016-12-07 09:53:24 +00:00
|
|
|
:tag => "2016-12-07",
|
|
|
|
:revision => "5dc941e36b8fd6925d7d8f687b429c68877f9d9a"
|
|
|
|
version "2016-12-07"
|
2016-03-21 06:51:31 +00:00
|
|
|
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
|
|
|
|
|
2016-03-21 06:51:31 +00:00
|
|
|
def install
|
2016-12-02 22:43:59 +00:00
|
|
|
inreplace "searchsploit", "gitpath=\"/opt/exploit-database\"", "gitpath=\"#{pkgshare}\""
|
2016-03-21 06:51:31 +00:00
|
|
|
bin.install "searchsploit"
|
|
|
|
pkgshare.install %w[files.csv platforms .git]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/searchsploit", "sendpage"
|
|
|
|
end
|
|
|
|
end
|