21 lines
612 B
Ruby
21 lines
612 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-03-21",
|
||
|
:revision => "e67a88eeffbc511d3e5e10bfc26639e6fce16576"
|
||
|
version "2016-03-21"
|
||
|
|
||
|
head "https://github.com/offensive-security/exploit-database.git"
|
||
|
|
||
|
def install
|
||
|
inreplace "searchsploit", "gitpath=\"/usr/share/exploitdb\"", "gitpath=\"#{pkgshare}\""
|
||
|
bin.install "searchsploit"
|
||
|
pkgshare.install %w[files.csv platforms .git]
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system "#{bin}/searchsploit", "sendpage"
|
||
|
end
|
||
|
end
|