-
-
Notifications
You must be signed in to change notification settings - Fork 86
Installation and Building
A Docker 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
To make your life simple you can also use this docker-compose file.
THE CRATES.IO BUILD DOES NOT INCLUDE ALL FEATURES BY DEFAULT, IT IS HIGHLY RECOMMENDED TO USE LEGBA VIA DOCKER
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
.
Building the project from sources requires Rust to be installed. After cloning this repository, install libcrypto-dev
and libsmbclient-dev
on your host, then you can build the project with:
cargo build --release --features http_relative_paths
The binary will be compiled inside the ./target/release
folder.
Alternatively it is possible to build a Docker container:
docker build -t legba .
And then run it via:
docker run legba --help # or any other command line
- Installation and Building
- Usage & Main Options
- REST API
- Recipes
- Plugins
- AMQP (ActiveMQ, RabbitMQ, Qpid, JORAM and Solace)
- DNS
- FTP
- HTTP
- IMAP
- Kerberos
- LDAP
- MongoDB
- MQTT
- Microsoft SQL
- MySQL
- Oracle
- Port Scanner
- PostgreSQL
- POP3
- RDP
- Redis
- Samba
- ScyllaDB / Cassandra
- SSH / SFTP
- SMTP
- SOCKS5
- STOMP (ActiveMQ, RabbitMQ, HornetQ and OpenMQ)
- Telnet
- VNC
- Custom Binary