36 lines
2.0 KiB
Ruby
36 lines
2.0 KiB
Ruby
class Crunch < Formula
|
|
desc "Wordlist generator"
|
|
homepage "https://sourceforge.net/projects/crunch-wordlist/"
|
|
url "https://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/crunch-3.6.tgz"
|
|
sha256 "6a8f6c3c7410cc1930e6854d1dadc6691bfef138760509b33722ff2de133fe55"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "7012aebe6b421760ccec1550bb6ca1684f5808d8b7f4aa4b31a939f4a50fcf58"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "f7f96f0cb4350722c3b04aca1d7d0d9a94b9084649888216d1ec4f089809fe8c"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "dfc7c5b56963d28a58c64a2a28d0c19b61dfce141b83c9facaad0d8d606949b2"
|
|
sha256 cellar: :any_skip_relocation, ventura: "21786261bea2b66d97b4f2b089929175cf79690491b1d45768900cb9384f69b0"
|
|
sha256 cellar: :any_skip_relocation, monterey: "7797dae15adc8701e4d93c3a0455adb8796aca9f7e366bfa12448ce9aeac7153"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "9cd9d5ae5afb6b6223e720b99d30990f1884cd8ed4e0b5654a9ab2d72cc4d132"
|
|
sha256 cellar: :any_skip_relocation, catalina: "67570938790b20aaabcb31c8ac86d4356702b87ce2ae8ea01d19553f531397a6"
|
|
sha256 cellar: :any_skip_relocation, mojave: "ad3bd04ba230c46df88ab4ab7a74efa3182cd65b804b65a28a327f74700641e8"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "c59cb398b0ed4f28e8d56c49709991f5ea61b61bad4d672f1a481730948cdeb0"
|
|
sha256 cellar: :any_skip_relocation, sierra: "737d46b90aaa933abe03e111ece79e3f6a0ecb372cc1903b9dba3a33208111b9"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "84c0c275e63cc5c27fd468587f67ae5f1ab31a3923fe2eda27b4e33477356844"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "2da41fe3124d8d6fbfd6df0fa1eefd803b2fee839332cdce61b9c8a1e15e977d"
|
|
end
|
|
|
|
def install
|
|
system "make", "CC=#{ENV.cc}", "LFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
bin.install "crunch"
|
|
man1.install "crunch.1"
|
|
share.install Dir["*.lst"]
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/crunch", "-v"
|
|
end
|
|
end
|