-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151822 from Porkepix/bump-nuclei-3.0.0
nuclei 3.0.0
- Loading branch information
Showing
1 changed file
with
13 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,31 @@ | ||
class Nuclei < Formula | ||
desc "HTTP/DNS scanner configurable via YAML templates" | ||
homepage "https://nuclei.projectdiscovery.io/" | ||
url "https://github.com/projectdiscovery/nuclei/archive/v2.9.15.tar.gz" | ||
sha256 "5be9d45a14affafa434822b01784afccc38b46ae6ce80e1c7cfe72f2458e4269" | ||
url "https://github.com/projectdiscovery/nuclei/archive/v3.0.0.tar.gz" | ||
sha256 "81088d5fb7dc6be1ab1c27bdd97230834e7daf0c901d1fde114bfe378989066a" | ||
license "MIT" | ||
head "https://github.com/projectdiscovery/nuclei.git", branch: "master" | ||
|
||
bottle do | ||
sha256 cellar: :any_skip_relocation, arm64_sonoma: "039347dffd8633a967c6622f74c792555852ec59ff262ffcf8f91cc9a7497294" | ||
sha256 cellar: :any_skip_relocation, arm64_ventura: "a8207c8c31949eef4934e034f91597d0d57f472287742b628df28041cb84db37" | ||
sha256 cellar: :any_skip_relocation, arm64_monterey: "647794535369587e1add3ffe5d7eab51f6ed9d1d02d1ee37dac186d39b23da36" | ||
sha256 cellar: :any_skip_relocation, arm64_big_sur: "dc9ed876f891ed70af869706a24f82cdc9a3f941001eaeaee243831b7920d2b1" | ||
sha256 cellar: :any_skip_relocation, sonoma: "56208e0813c2a659d01556c63afc635dbd52cb77edf024662e06cf4aff0d1c7b" | ||
sha256 cellar: :any_skip_relocation, ventura: "a434e5b04efbb41f20bf86883a81331cb78c101718a3b73cea51f4d0b02a4b1d" | ||
sha256 cellar: :any_skip_relocation, monterey: "d4cf5c899f217816579ee43faf37eda9c51e616651c4acdfbe91dbc24f8e4920" | ||
sha256 cellar: :any_skip_relocation, big_sur: "53d6a7d1d99665eda0c38d32a6e0e40d694799d831d8457fd25861898c143127" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "5f39b21f33988175693515f4ab37e77bfe0f5ff7322b2e5812e5660f0d91a4a8" | ||
sha256 cellar: :any_skip_relocation, arm64_sonoma: "28837d415f030e3ab36cf907deef7d338b3c91c5c56e38bef5acefc337b740e8" | ||
sha256 cellar: :any_skip_relocation, arm64_ventura: "d68618e5de35e909a858628a4389ffae142dd6bc7b7cee9a45f9f181f73975fe" | ||
sha256 cellar: :any_skip_relocation, arm64_monterey: "c56b5b997fe588b9a97ff812ea9843f0b0e382492cdb7bfd4585b8cdb63a3372" | ||
sha256 cellar: :any_skip_relocation, sonoma: "ffad0e8b61122d6d0d4e5aafa284089e64fdafd5d95ab4eb4e4c52b8a006e68e" | ||
sha256 cellar: :any_skip_relocation, ventura: "2917b4acb7551225356fd17f93b74dd378bafbf3dc1933cba38ba23888a7ec6c" | ||
sha256 cellar: :any_skip_relocation, monterey: "56843c36c9a9ea28adadf262603135cd4172d50ac92a990eb5fac7d55b3e052d" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "0f8d7aadf456e0a3c7f965ed2a66a3eed69c3c89b8fdcbe4babfd283325494f7" | ||
end | ||
|
||
depends_on "go" => :build | ||
|
||
def install | ||
cd "v2/cmd/nuclei" do | ||
system "go", "build", *std_go_args(ldflags: "-s -w"), "main.go" | ||
end | ||
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/nuclei" | ||
end | ||
|
||
test do | ||
(testpath/"test.yaml").write <<~EOS | ||
id: homebrew-test | ||
output = shell_output("#{bin}/nuclei -scan-all-ips -disable-update-check example.com 2>&1", 1) | ||
assert_match "No results found", output | ||
|
||
info: | ||
name: Homebrew test | ||
author: bleepnetworks | ||
severity: INFO | ||
description: Check DNS functionality | ||
dns: | ||
- name: "{{FQDN}}" | ||
type: A | ||
class: inet | ||
recursion: true | ||
retries: 3 | ||
matchers: | ||
- type: word | ||
words: | ||
- "IN\tA" | ||
EOS | ||
system bin/"nuclei", "-target", "google.com", "-t", "test.yaml", "-config-directory", testpath | ||
assert_match version.to_s, shell_output("#{bin}/nuclei -version 2>&1") | ||
end | ||
end |