homebrew-core/Formula/exploitdb.rb
Igor Kapkov 85a43db757
exploitdb 2018-11-28
Closes #34574.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-11-29 14:49:53 +08:00

32 lines
959 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 => "2018-11-28",
:revision => "dfd1e454e1d8331215f5544aed699b3d7f77825e"
version "2018-11-28"
head "https://github.com/offensive-security/exploit-database.git"
bottle :unneeded
def install
inreplace "searchsploit",
"rc_file=\"\"", "rc_file=\"#{etc}/searchsploit_rc\""
optpath = opt_share/"exploitdb"
inreplace ".searchsploit_rc" do |s|
s.gsub! "\"/opt/exploitdb\"", optpath
s.gsub! "\"/opt/exploitdb-papers\"", "#{optpath}-papers"
end
bin.install "searchsploit"
etc.install ".searchsploit_rc" => "searchsploit_rc"
pkgshare.install %w[.git exploits files_exploits.csv files_shellcodes.csv
shellcodes]
end
test do
system "#{bin}/searchsploit", "sendpage"
end
end