File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1606,6 +1606,7 @@ leakcanary-shark
16061606lean-cli
16071607leapp-cli
16081608leetup
1609+ legba
16091610legitify
16101611lego
16111612leiningen
Original file line number Diff line number Diff line change 1+ class Legba < Formula
2+ desc "Multiprotocol credentials bruteforcer/password sprayer and enumerator"
3+ homepage "https://github.com/evilsocket/legba"
4+ url "https://github.com/evilsocket/legba/archive/refs/tags/v0.10.0.tar.gz"
5+ sha256 "9755ec21539ec31dfc6c314dde1416c9b2bc79199f5aceb937e84bafc445b208"
6+ license "AGPL-3.0-only"
7+
8+ depends_on "cmake" => :build
9+ depends_on "pkgconf" => :build
10+ depends_on "rust" => :build
11+ depends_on "openssl@3"
12+ depends_on "samba"
13+
14+ def install
15+ # Ensure that the `openssl` crate picks up the intended library.
16+ ENV [ "OPENSSL_DIR" ] = Formula [ "openssl@3" ] . opt_prefix
17+ ENV [ "OPENSSL_NO_VENDOR" ] = "1"
18+
19+ system "cargo" , "install" , *std_cargo_args
20+
21+ generate_completions_from_executable ( bin /"legba" , "--generate-completions" )
22+ end
23+
24+ test do
25+ assert_match version . to_s , shell_output ( "#{ bin } /legba --version" )
26+
27+ output = shell_output ( "#{ bin } /legba --list-plugins" )
28+ assert_match "Samba password authentication" , output
29+ end
30+ end
You can’t perform that action at this time.
0 commit comments