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-04-04 11:48:34 +00:00
|
|
|
:tag => "2016-04-04",
|
|
|
|
:revision => "3b935016eaede0295ce1ef1cd490cb039edc236d"
|
|
|
|
version "2016-04-04"
|
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
|
|
|
|
sha256 "f8a8ee01637daf836946d4bbc5442d465e75d86c6d5df9d5673029588a79ac93" => :el_capitan
|
|
|
|
sha256 "7521a2cd90ef47270248e201a2afe1a87cc20b7bbabcc2c665de35c97c98cb1e" => :yosemite
|
|
|
|
sha256 "3ad67e9c2d321f0f0d4a28f6f0557137b6b2638ecf28b2d3db0e8a5b200466a7" => :mavericks
|
|
|
|
end
|
|
|
|
|
2016-03-21 06:51:31 +00:00
|
|
|
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
|