252d2df07a
Closes #35963. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
32 lines
945 B
Ruby
32 lines
945 B
Ruby
class Exploitdb < Formula
|
|
desc "The official Exploit Database"
|
|
homepage "https://www.exploit-db.com/"
|
|
url "https://github.com/offensive-security/exploitdb.git",
|
|
:tag => "2019-01-12",
|
|
:revision => "0495dc483e1f9e7d4ae463398c9f60451b34bffd"
|
|
version "2019-01-12"
|
|
head "https://github.com/offensive-security/exploitdb.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
|