homebrew-core/Formula/exploitdb.rb
2017-12-01 07:59:07 -08:00

22 lines
700 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 => "2017-12-01",
:revision => "cc349de5d365aed491a5c0b570bfbb3ca4bd50c0"
version "2017-12-01"
head "https://github.com/offensive-security/exploit-database.git"
bottle :unneeded
def install
inreplace "searchsploit", "gitpath=\"/opt/exploit-database\"", "gitpath=\"#{pkgshare}\""
bin.install "searchsploit"
pkgshare.install %w[.git exploits files_exploits.csv files_shellcodes.csv
shellcodes]
end
test do
system "#{bin}/searchsploit", "sendpage"
end
end