gobuster 3.0.1
Closes #41169. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
b949e80bd7
commit
d99ad68b88
1 changed files with 13 additions and 35 deletions
|
@ -1,11 +1,9 @@
|
|||
require "language/go"
|
||||
|
||||
class Gobuster < Formula
|
||||
desc "Directory/file & DNS busting tool written in Go"
|
||||
homepage "https://github.com/OJ/gobuster"
|
||||
url "https://github.com/OJ/gobuster/archive/v2.0.1.tar.gz"
|
||||
sha256 "2409acffe1fa46424a1de465bca1d3d026bdaba9a7e6bccc1d934f7ae51c24e0"
|
||||
head "https://github.com/OJ/gobuster.git"
|
||||
url "https://github.com/OJ/gobuster.git",
|
||||
:tag => "v3.0.1",
|
||||
:revision => "9ef3642d170d71fd79093c0aa0c23b6f2a4c1c64"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -17,37 +15,17 @@ class Gobuster < Formula
|
|||
|
||||
depends_on "go" => :build
|
||||
|
||||
go_resource "github.com/hashicorp/errwrap" do
|
||||
url "https://github.com/hashicorp/errwrap.git",
|
||||
:revision => "8a6fb523712970c966eefc6b39ed2c5e74880354"
|
||||
end
|
||||
|
||||
go_resource "github.com/hashicorp/go-multierror" do
|
||||
url "https://github.com/hashicorp/go-multierror.git",
|
||||
:revision => "886a7fbe3eb1c874d46f623bfa70af45f425b3d1"
|
||||
end
|
||||
|
||||
go_resource "github.com/google/uuid" do
|
||||
url "https://github.com/google/uuid.git",
|
||||
:revision => "e704694aed0ea004bb7eb1fc2e911d048a54606a"
|
||||
end
|
||||
|
||||
go_resource "golang.org/x/crypto" do
|
||||
url "https://go.googlesource.com/crypto.git",
|
||||
:revision => "182538f80094b6a8efaade63a8fd8e0d9d5843dd"
|
||||
end
|
||||
|
||||
go_resource "golang.org/x/sys" do
|
||||
url "https://go.googlesource.com/sys.git",
|
||||
:revision => "49385e6e15226593f68b26af201feec29d5bba22"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/OJ").mkpath
|
||||
ln_sf buildpath, buildpath/"src/github.com/OJ/gobuster"
|
||||
Language::Go.stage_deps resources, buildpath/"src"
|
||||
system "go", "build", "-o", bin/"gobuster"
|
||||
ENV["GO111MODULE"] = "on"
|
||||
|
||||
dir = buildpath/"src/github.com/OJ/gobuster"
|
||||
dir.install buildpath.children
|
||||
|
||||
cd dir do
|
||||
system "go", "build", "-o", bin/"gobuster"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
|
@ -59,7 +37,7 @@ class Gobuster < Formula
|
|||
ape
|
||||
EOS
|
||||
|
||||
output = shell_output("#{bin}/gobuster -u https://buffered.io -w words.txt 2>&1")
|
||||
output = shell_output("#{bin}/gobuster dir -u https://buffered.io -w words.txt 2>&1")
|
||||
assert_match "Finished", output
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue