37 lines
1.2 KiB
Ruby
37 lines
1.2 KiB
Ruby
class Sslsplit < Formula
|
|
desc "Man-in-the-middle attacks against SSL encrypted network connections"
|
|
homepage "https://www.roe.ch/SSLsplit"
|
|
url "https://github.com/droe/sslsplit/archive/0.5.5.tar.gz"
|
|
sha256 "3a6b9caa3552c9139ea5c9841d4bf24d47764f14b1b04b7aae7fa2697641080b"
|
|
license "BSD-2-Clause"
|
|
revision 1
|
|
head "https://github.com/droe/sslsplit.git", branch: "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "a533ccfc4c05e2affcfa4c697c38d995239abfd1fe4c383ffaa1a8ed42a933e6" => :catalina
|
|
sha256 "10534d989706ca1d29b7f1cbffc59ef07b02d0d755cb8aec5bdf9430c52769bb" => :mojave
|
|
sha256 "4f7a3cb7333641658889a55830a69d0ac64cf93dca8a6de32052d4080f477058" => :high_sierra
|
|
end
|
|
|
|
depends_on "check" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libevent"
|
|
depends_on "libnet"
|
|
depends_on "libpcap"
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
system "make"
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
port = free_port
|
|
|
|
cmd = "#{bin}/sslsplit -D http 0.0.0.0 #{port} www.roe.ch 80"
|
|
output = pipe_output("(#{cmd} & PID=$! && sleep 3 ; kill $PID) 2>&1")
|
|
assert_match "Starting main event loop", output
|
|
end
|
|
end
|