# 使用 Homebrew, Nix, pacman 安装 legba

查看 legba 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:legba
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install legba
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#legba
```

  证据: nixpkgs package indexes: pkgs/by-name/le/legba/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S legba
```

  证据: Arch Linux sync databases: legba from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:legba
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/legba>
- **版本:** 1.3.0
- **来源摘要:** Multiprotocol credentials bruteforcer/password sprayer and enumerator
- **主页:** <https://legba.evilsocket.net/>
- **仓库:** <https://github.com/evilsocket/legba>
- **上游文档:** <https://legba.evilsocket.net/>
- **许可证:** AGPL-3.0-only
- **源码归档:** <https://github.com/evilsocket/legba/archive/refs/tags/1.3.0.tar.gz>
- **最后更新:** 2026-06-22T14:05:10-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- legba (cli)
- legba (别名)

## 依赖

- openssl@3
- samba

## 构建依赖

- cmake
- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/evilsocket/legba
- 检测到的最新版本: 1.3.0 (当前)
## 项目历史与用法

Legba is Simone Margaritelli's Rust credential-testing CLI for authorized security work: a multi-protocol bruteforcer, password sprayer, and enumerator built around Tokio concurrency.

### 项目历史

The author presented Legba on 2023-11-02 as a project that began as Rust and Tokio practice and quickly became a replacement candidate for older credential attack tools such as THC-Hydra, Medusa, Patator, and related utilities. The official README and docs kept that framing: Rust, async execution, many protocol plugins, resumable sessions, rate controls, YAML recipes, a REST API, and an MCP server.

### 采用历史

Legba's adoption trail is mostly security-tool packaging rather than mainstream application development. Official materials show precompiled releases, Docker distribution, Homebrew installation through the author's tap, and later broader package-manager exposure through Homebrew, Nix, Arch packaging, and similar channels.

### 使用方式

The CLI is used for authorized credential auditing across services such as SMB, SSH, HTTP forms, databases, LDAP, Kerberos, MQTT, and other supported plugins. The docs emphasize rate limiting, delays, jitter, session save/restore, recipes, and legal authorization, which are the practical controls that separate testing workflows from reckless brute forcing.

### 为什么软件包爱好者会关心

Legba is notable to package nerds as an example of security tooling moving from C and Python heritage into single-binary Rust distribution. The interesting packaging angle is not just speed; it is a no-native-dependency binary shipped through releases, Docker, cargo, and OS package managers while carrying a large protocol surface.

### 时间线

- 2023-11-02: The author published the introductory Legba article.
- 2024-03-20: A Kali packaging request noted Arch package availability for Legba 0.8.0.
- 2025-08-22: The author noted static linking, precompiled binaries, and .deb assets in the Kali packaging thread.
- 2026-05-19: GitHub releases showed Legba 1.3.0.

### Related projects

- Related tools include THC-Hydra, Medusa, Ncrack, Patator, and protocol-specific credential auditing tools. Related distribution surfaces include Docker Hub, crates.io/lib.rs metadata, Homebrew taps, Arch packages, and security distributions such as Kali.

### 来源

- <https://bugs.kali.org/view.php?id=8682>
- <https://github.com/evilsocket/legba>
- <https://github.com/evilsocket/legba/releases>
- <https://legba.evilsocket.net/>
- <https://legba.evilsocket.net/faq/>
- <https://www.evilsocket.net/2023/11/02/Enumerate-Bruteforce-Attack-All-The-Things-Presenting-Legba/>


## 安全说明

没有找到 legba 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** legba
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - legba: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/legba/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - legba - 1.3.0-1: normalized package name match | Arch Linux sync databases: legba from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A multiprotocol credentials bruteforcer / password sprayer and enumerator | https://github.com/evilsocket/legba


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [samba](https://pkg.so/zh-hans/brew/samba/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [echidna](https://pkg.so/zh-hans/brew/echidna/) - Shares pkgdb curated category or tags: cli, security, testing.
- [jwt-hack](https://pkg.so/zh-hans/brew/jwt-hack/) - Shares pkgdb curated category or tags: cli, security, testing.
- [ldeep](https://pkg.so/zh-hans/brew/ldeep/) - Shares pkgdb curated category or tags: cli, enumeration, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [p11-kit](https://pkg.so/zh-hans/brew/p11-kit/) - Shares pkgdb curated category or tags: cli, security.
- [gnupg](https://pkg.so/zh-hans/brew/gnupg/) - Shares pkgdb curated category or tags: cli, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: cli, security.
- [findomain](https://pkg.so/zh-hans/brew/findomain/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, enumeration, enumerator, openssl, openssl-3.
- [hydra](https://pkg.so/zh-hans/brew/hydra/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, openssl, openssl-3, password, security.
- [feroxbuster](https://pkg.so/zh-hans/brew/feroxbuster/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, enumeration, openssl, openssl-3, security.

## Combined YAML source

View the package source record on GitHub. [combined/legba.yml](https://github.com/mxcl/pkgdb/blob/main/combined/legba.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
