-
Notifications
You must be signed in to change notification settings - Fork 0
/
feroxbuster.rb
29 lines (23 loc) · 886 Bytes
/
feroxbuster.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
28
29
# frozen_string_literal: true
class Feroxbuster < Formula
desc 'Fast, simple, recursive content discovery tool written in Rust. 🦀'
homepage 'https://github.com/epi052/feroxbuster'
url 'https://github.com/epi052/feroxbuster/releases/download/v2.3.3/x86_64-macos-feroxbuster.tar.gz'
sha256 'a3e89a7b754c4b244cca23fadd9949d09ffc3e3f05101a247e731ccb00737347'
resource 'ferox-config' do
url 'https://raw.githubusercontent.com/epi052/feroxbuster/master/ferox-config.toml.example'
sha256 'b86d94f6716bf722a3079d4f3a44ce583fc3b3c925eedd5ced6c780193cfe707'
end
def install
config = "#{bin}/ferox-config.toml"
example = "#{bin}/ferox-config.toml.example"
bin.install 'feroxbuster'
resource('ferox-config').stage do
bin.install resource('ferox-config')
system 'cp', '-n', example, config
end
end
test do
assert true
end
end