Installation¶
Binaries¶
Download one of the precompiled binaries from the project latest release page.
Cargo¶
Legba is published as a binary crate on crates.io, if you have Cargo installed you can:
This will compile its sources and install the binary in $HOME/.cargo/bin/legba.
Homebrew¶
If you're a Homebrew user, you can install Legba with a custom tap:
Docker¶
For any OS supporting docker, an image is available on Docker Hub:
When using wordlist files, remember to share them via a docker volume. Moreover you'll want to use the host network in order to reach the target, for instance:
docker run \
-v $(pwd):/data \ # shared the current directory as /data inside the container
--network host \ # docker will use the same network of the host
-it evilsocket/legba:latest \
ssh --username root --password /data/your-wordlist.txt --target 192.168.1.1
AI Agent Skill¶
If you use an AI coding agent (Claude Code, Cursor, Copilot, OpenCode, and many others), you can install the legba skill to give it full knowledge of the tool - target syntax, credential expressions, plugins, recipes, REST API, and MCP server:
Once installed, your agent will be able to construct legba commands, write recipes, and configure the REST API or MCP server without needing to look things up manually.
Building¶
Sources¶
Building the project from sources requires Rust to be installed. After cloning this repository you can build it with:
The binary will be compiled inside the ./target/release folder.
Docker Image¶
Alternatively it is possible to build a Docker container: