homebrew-core/Formula/exploitdb.rb
2016-09-27 18:58:32 -04:00

28 lines
1,016 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-08-20",
:revision => "ae53a02150a104b1c03f205db6168cfd1efafb32"
version "2016-08-20"
head "https://github.com/offensive-security/exploit-database.git"
bottle do
cellar :any_skip_relocation
sha256 "bd5bd025faf2b496d17c02a8c3185553cff8967157a99771c3155c6785a68dff" => :sierra
sha256 "dce4a250fe9dc8a5a78e9b0f6c4e4c6fa1a9deb24b5d2c93ad587555e7304402" => :el_capitan
sha256 "c173788a90b9defe921e90e09a1993ff9380395553a108991fbf5957a30cf23e" => :yosemite
sha256 "98905b4c06973a1f9a5539e14c01e6250e9e0b9758940d9bef9cf991d9e0f69f" => :mavericks
end
def install
inreplace "searchsploit", /gitpath=\"\$\( cd .*/, "gitpath=\"#{pkgshare}\""
bin.install "searchsploit"
pkgshare.install %w[files.csv platforms .git]
end
test do
system "#{bin}/searchsploit", "sendpage"
end
end