Skip to content

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:

cargo install legba

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:

brew tap evilsocket/legba https://github.com/evilsocket/legba
brew install evilsocket/legba/legba

Docker

For any OS supporting docker, an image is available on Docker Hub:

docker run -it evilsocket/legba -h 

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

Building

Sources

Building the project from sources requires Rust to be installed. After cloning this repository you can build it with:

cargo build --release

The binary will be compiled inside the ./target/release folder.

Docker Image

Alternatively it is possible to build a Docker container:

docker build -t legba .