homebrew-core/Formula/rustscan.rb

29 lines
1.3 KiB
Ruby

class Rustscan < Formula
desc "Modern Day Portscanner"
homepage "https://github.com/rustscan/rustscan"
url "https://github.com/RustScan/RustScan/archive/2.0.1.tar.gz"
sha256 "1d458cb081cbed2db38472ff33f9546a6640632148b4396bd12f0229ca9de7eb"
license "GPL-3.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, monterey: "3b9fda4219ae6932bc7725b11709405731ccc2ca3c04df7d4abe4ed00219ef8d"
sha256 cellar: :any_skip_relocation, big_sur: "83c8a3e9b4a71e21590bd377b1db9518cb32794d341d161519e974dd3e837f2e"
sha256 cellar: :any_skip_relocation, catalina: "21f4b50689613475ca9194ecae3b062e874d49bb987b1949f453885360715200"
sha256 cellar: :any_skip_relocation, mojave: "135ddda8cfa5a670c0c49e3730148e8f50dfa1b597d9bdf2c35b5fc4d5a8fd9e"
sha256 cellar: :any_skip_relocation, high_sierra: "d830a6c803a7cd609c6287452f9c02bb855e1f193463b2655cc2df19e46e1f6a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "cbe4db4bdd1680a3ecb79f4b0a010d342583dc43fc740fee7c80589dd85dae09"
end
depends_on "rust" => :build
depends_on "nmap"
def install
system "cargo", "install", *std_cargo_args
end
test do
refute_match("panic", shell_output("#{bin}/rustscan --greppable -a 127.0.0.1"))
refute_match("panic", shell_output("#{bin}/rustscan --greppable -a 0.0.0.0"))
end
end