forked from sidaf/homebrew-pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirb.rb
27 lines (22 loc) · 854 Bytes
/
dirb.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'
class Dirb < Formula
homepage 'http://dirb.sourceforge.net/'
url "http://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz"
sha256 "f3748ade231ca211a01acbec31cc6a3b576f6c56c906d73329d7dbb79f60fc2c"
version "2.2-20161120"
revision 3
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "curl" => :build
def install
system "chmod", "-R", "744", "dirb222"
cd "dirb222" do
inreplace "src/dirb.c", "/usr/share/dirb/wordlists/common.txt", "/usr/local/share/dirb/wordlists/common.txt"
inreplace "src/dirb.c", "/usr/share/dirb/wordlists/vulns/apache.txt", "/usr/local/share/dirb/wordlists/vulns/apache.txt"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
pkgshare.install Dir["wordlists"]
end
end
end