forked from sidaf/homebrew-pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwfuzz.rb
More file actions
31 lines (25 loc) · 978 Bytes
/
wfuzz.rb
File metadata and controls
31 lines (25 loc) · 978 Bytes
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
28
29
30
31
require "formula"
class Wfuzz < Formula
homepage "https://github.com/xmendez/wfuzz"
url "https://github.com/xmendez/wfuzz", :using => :git, :revision => "5e60f67"
version "2.1.3"
depends_on "curl"
resource "pycurl" do
url "https://pypi.python.org/packages/12/3f/557356b60d8e59a1cce62ffc07ecc03e4f8a202c86adae34d895826281fb/pycurl-7.43.0.tar.gz"
sha256 "aa975c19b79b6aa6c0518c0cc2ae33528900478f0b500531dbcdbf05beec584c"
end
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib64/python2.7/site-packages"
%w[pycurl].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
(bin/"wfuzz").write <<-EOS.undent
#!/usr/bin/env bash
cd #{libexec} && PYTHONPATH=#{ENV["PYTHONPATH"]} python wfuzz.py "$@"
EOS
libexec.install Dir['*']
end
end