Skip to content

Commit 4e6487f

Browse files
committed
legba 0.10.0 (new formula)
Signed-off-by: Rui Chen <[email protected]> legba: add completions and autobump Signed-off-by: Rui Chen <[email protected]>
1 parent 053d0bf commit 4e6487f

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,7 @@ leakcanary-shark
16061606
lean-cli
16071607
leapp-cli
16081608
leetup
1609+
legba
16091610
legitify
16101611
lego
16111612
leiningen

Formula/l/legba.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)