Permalink
Switch branches/tags
Nothing to show
Find file Copy path
0f47e7b Nov 16, 2018
1 recent contributor

Users who have contributed to this file recently

33 lines (26 sloc) 959 Bytes
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-16",
:revision => "268e737bb6d13a14ed946435369e97d53a822ab9"
version "2018-11-16"
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