/
amass.rb
31 lines (26 loc) 路 1.56 KB
/
amass.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
30
31
class Amass < Formula
desc "In-depth attack surface mapping and asset discovery"
homepage "https://owasp.org/www-project-amass/"
url "https://github.com/owasp-amass/amass/archive/refs/tags/v4.2.0.tar.gz"
sha256 "cc6b88593972e7078b73f07a0cef2cd0cd3702694cbc1f727829340a3d33425c"
license "Apache-2.0"
head "https://github.com/owasp-amass/amass.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f50a72e211dbd6ad730f2b288656f74ae46e25c07448c3c37dceceb2b45edc4c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "d71b584ce13afc60ad62a25a9f2df1fecaa43b30ecd914557374e61c146b4ece"
sha256 cellar: :any_skip_relocation, arm64_monterey: "84dbad75673b4a7fe5b50eacb186f995cced136874ca05a9a9d2d32788991276"
sha256 cellar: :any_skip_relocation, sonoma: "d7ac1d640f491125d3c20fb4d9478a98c5e832fb84d483ebebf3bcd4dcb79e28"
sha256 cellar: :any_skip_relocation, ventura: "3a9b971b823bec3ebd1408d1ac16cd33bd3a6a3fc711a13be734ac6c54e08c4d"
sha256 cellar: :any_skip_relocation, monterey: "ff9b09adf0a93790379a6ef01864d633153a8d57601817ef26d6a7f1fbb58abe"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ea781b89ff2a7b5bb0035161e5e80466a65d9d1801169452fa7abf5ce35a1f46"
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/amass"
end
test do
output = shell_output("#{bin}/amass intel -whois -d owasp.org 2>&1")
assert_match "blockster.com", output
assert_match version.to_s, shell_output("#{bin}/amass --version 2>&1")
end
end