homebrew-core/Formula/hashcat.rb

32 lines
1.1 KiB
Ruby

class Hashcat < Formula
desc "World's fastest and most advanced password recovery utility"
# MacOS curl complains about https://hashcat.net SSL cert
# See https://github.com/Homebrew/homebrew-core/pull/56503#issuecomment-660728358
homepage "https://hashcat.net/hashcat/"
url "https://hashcat.net/files/hashcat-6.1.1.tar.gz"
mirror "https://github.com/hashcat/hashcat/archive/v6.1.1.tar.gz"
sha256 "39c140bbb3c0bdb1564bfa9b9a1cff49115a42f4c9c19e9b066b617aea309f80"
license "MIT"
version_scheme 1
head "https://github.com/hashcat/hashcat.git"
bottle do
sha256 "dd7e0ba6e2441b0517b55ef243efc8f8be3dfd1550b83033e264057a677e8fa2" => :catalina
sha256 "ad145c3ffb0ffb779dbdde3e0c1c0329b2b45d491e76ba0b92c48c02028e51c1" => :mojave
sha256 "2e1cbf12a3f5ed5fceb622e5f773d102edfaff06a847df925456e92dd6ca91ba" => :high_sierra
end
depends_on "gnu-sed" => :build
def install
system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}"
system "make", "install", "CC=#{ENV.cc}", "PREFIX=#{prefix}"
end
test do
cp_r pkgshare.children, testpath
cp bin/"hashcat", testpath
system testpath/"hashcat --benchmark -m 0"
end
end