40 lines
1.8 KiB
Ruby
40 lines
1.8 KiB
Ruby
class Reaver < Formula
|
|
desc "Implements brute force attack to recover WPA/WPA2 passkeys"
|
|
homepage "https://code.google.com/archive/p/reaver-wps/"
|
|
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/reaver-wps/reaver-1.4.tar.gz"
|
|
sha256 "add3050a4a05fe0ab6bfb291ee2de8e9b8a85f1e64ced93ee27a75744954b22d"
|
|
license "GPL-2.0"
|
|
|
|
livecheck do
|
|
url "https://www.googleapis.com/download/storage/v1/b/google-code-archive/o/v2%2Fcode.google.com%2Freaver-wps%2Fdownloads-page-1.json?&alt=media"
|
|
regex(/reaver[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 "73539f97836b5df80e030e429eb7f209dec3067c14b1bfd6753bcf7796c1f541" => :catalina
|
|
sha256 "386ed8ae2562ae032f0d622d52d7302be2e99bbe671f1ca5ba3acb88b86f6417" => :mojave
|
|
sha256 "c2c6d45abc45f5639b74da0bdb294a5ee83548f548642f6b61d764d05801352e" => :high_sierra
|
|
sha256 "e7fc0f43b7a306d5fe2baaf4b41e9ce445db12e2e74d41904b3de5d2c372741d" => :sierra
|
|
sha256 "d9adddf27928b284492cc87b565d2748490c1017b0b463bc15223c935f63bb6c" => :el_capitan
|
|
sha256 "4fbf7b0225730d7a37bfb71bec7b99f78f0b0946df7bcb3e5f274795692e1b3f" => :yosemite
|
|
sha256 "036092600e415ebba4bc372cff4b7645783e9285c1af56990b0f064db61a0ca4" => :mavericks
|
|
end
|
|
|
|
# Adds general support for macOS in reaver:
|
|
# https://code.google.com/archive/p/reaver-wps/issues/detail?id=245
|
|
patch do
|
|
url "https://gist.githubusercontent.com/syndicut/6134996/raw/16f1b4336c104375ff93a88858809eced53c1171/reaver-osx.diff"
|
|
sha256 "2a8f791df1f59747724e2645f060f49742a625686427877d9f0f21dc62f811a7"
|
|
end
|
|
|
|
def install
|
|
man1.install "docs/reaver.1.gz"
|
|
prefix.install_metafiles "docs"
|
|
cd "src"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
bin.mkpath
|
|
system "make", "install"
|
|
end
|
|
end
|