# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "legba"
version = "1.3.0"
authors = ["Simone Margaritelli <evilsocket@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast multi protocol credential bruteforcer/sprayer/enumerator."
homepage = "https://github.com/evilsocket/legba"
readme = "README.md"
keywords = [
    "authentication",
    "bruteforce",
    "wordlist",
]
license = "GPL-3.0"
repository = "https://github.com/evilsocket/legba"

[package.metadata.deb]
maintainer = "Simone Margaritelli <evilsocket@gmail.com>"
license-file = [
    "LICENSE",
    "0",
]
section = "net"
priority = "optional"
assets = [
    [
    "target/release/legba",
    "usr/bin/",
    "755",
],
    [
    "LICENSE",
    "usr/share/doc/legba/",
    "644",
],
    [
    "README.md",
    "usr/share/doc/legba/README",
    "644",
],
]
extended-description = """
Legba is a multiprotocol credentials bruteforcer / password sprayer and enumerator 
built with Rust and the Tokio asynchronous runtime in order to achieve better 
performances and stability while consuming less resources than similar tools.
"""

[features]
amqp = []
default = [
    "http",
    "dns",
    "ssh",
    "mssql",
    "mqtt",
    "sql",
    "ftp",
    "smtp",
    "pop3",
    "imap",
    "irc",
    "telnet",
    "ldap",
    "kerberos",
    "vnc",
    "mongodb",
    "rdp",
    "stomp",
    "amqp",
    "redis",
    "scylla",
    "port_scanner",
    "samba",
    "socks5",
    "snmp",
]
dns = [
    "dep:trust-dns-resolver",
    "dep:dns-lookup",
]
ftp = ["dep:async_ftp"]
http = [
    "dep:url",
    "dep:reqwest",
    "dep:base64",
    "dep:ntlmclient",
]
imap = ["dep:async-imap"]
irc = []
kerberos = [
    "dep:kerberos_crypto",
    "dep:kerberos_asn1",
    "dep:kerberos_constants",
]
ldap = ["dep:ldap3"]
mongodb = ["dep:mongodb"]
mqtt = ["dep:rumqttc"]
mssql = []
oracle = ["dep:sibyl"]
pop3 = ["dep:async-pop"]
port_scanner = ["dep:reqwest"]
rdp = ["dep:rdp-rs"]
redis = []
samba = ["dep:smb"]
scylla = ["dep:scylla"]
smtp = ["dep:async-smtp"]
snmp = ["dep:snmp2"]
socks5 = ["dep:fast-socks5"]
sql = ["dep:sqlx"]
ssh = [
    "dep:async-ssh2-tokio",
    "dep:russh",
]
stomp = []
telnet = ["dep:mini-telnet"]
vnc = ["dep:vnc-rs"]

[[bin]]
name = "legba"
path = "src/main.rs"

[dependencies.actix-cors]
version = "0.7.0"

[dependencies.actix-web]
version = "4.8.0"

[dependencies.ahash]
version = "0.8.3"

[dependencies.ansi_term]
version = "0.12.1"

[dependencies.async-channel]
version = "2.5.0"

[dependencies.async-imap]
version = "0.11.1"
features = ["runtime-tokio"]
optional = true
default-features = false

[dependencies.async-native-tls]
version = "0.5.0"
features = ["runtime-tokio"]
default-features = false

[dependencies.async-pop]
version = "1.0.2"
features = ["runtime-tokio"]
optional = true
default-features = false

[dependencies.async-smtp]
version = "0.10.2"
optional = true

[dependencies.async-ssh2-tokio]
version = "0.8.14"
optional = true

[dependencies.async-trait]
version = "0.1.73"

[dependencies.async_ftp]
version = "6.0.0"
optional = true

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.chrono]
version = "0.4.31"
features = ["serde"]

[dependencies.cidr-utils]
version = "0.6.1"

[dependencies.clap]
version = "4.4.4"
features = ["derive"]

[dependencies.clap_complete]
version = "4.4.6"

[dependencies.csv]
version = "1.3.0"

[dependencies.ctrlc]
version = "3.4.1"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.dns-lookup]
version = "2.0.4"
optional = true

[dependencies.env_logger]
version = "0.11.8"

[dependencies.evalexpr]
version = "12.0.2"
features = ["regex"]

[dependencies.fast-socks5]
version = "0.10.0"
optional = true

[dependencies.glob]
version = "0.3.1"

[dependencies.hex]
version = "0.4.3"

[dependencies.human_bytes]
version = "0.4.3"

[dependencies.include_dir]
version = "0.7.4"

[dependencies.indexmap]
version = "2.0.1"
features = ["serde"]

[dependencies.itertools]
version = "0.14.0"

[dependencies.kerberos_asn1]
version = "0.2.1"
optional = true

[dependencies.kerberos_constants]
version = "0.0.10"
optional = true

[dependencies.kerberos_crypto]
version = "0.3.6"
optional = true

[dependencies.lazy-regex]
version = "3.2.0"

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.ldap3]
version = "0.11.3"
optional = true

[dependencies.log]
version = "0.4.20"

[dependencies.memory-stats]
version = "1.1.0"

[dependencies.mini-telnet]
version = "0.1.8"
optional = true

[dependencies.mongodb]
version = "3.2.4"
optional = true

[dependencies.ntlmclient]
version = "0.2.0"
optional = true

[dependencies.num_cpus]
version = "1.16.0"

[dependencies.openssl]
version = "0.10"
features = ["vendored"]

[dependencies.openssl-sys]
version = "0.9"
features = ["vendored"]

[dependencies.rand]
version = "0.9.0"

[dependencies.random-string]
version = "1.1.0"

[dependencies.rdp-rs]
version = "0.1.0"
optional = true

[dependencies.regex]
version = "1.9.5"

[dependencies.reqwest]
version = "0.12.23"
features = [
    "multipart",
    "socks",
    "cookies",
    "rustls-tls",
]
optional = true

[dependencies.rlimit]
version = "0.10.1"

[dependencies.rmcp]
version = "0.6.0"
features = [
    "server",
    "transport-sse-server",
    "transport-io",
]

[dependencies.rumqttc]
version = "0.24.0"
optional = true

[dependencies.russh]
version = "0.51.1"
optional = true

[dependencies.scylla]
version = "1.3.1"
optional = true

[dependencies.serde]
version = "1.0.188"
features = ["serde_derive"]

[dependencies.serde_json]
version = "1.0.107"

[dependencies.serde_yaml]
version = "0.9.30"

[dependencies.shell-words]
version = "1.1.0"

[dependencies.sibyl]
version = "0.6.16"
features = [
    "tokio",
    "nonblocking",
]
optional = true

[dependencies.smb]
version = "0.9.0"
optional = true

[dependencies.snmp2]
version = "0.4.8"
features = [
    "tokio",
    "v3",
]
optional = true

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "tls-native-tls",
    "all-databases",
]
optional = true

[dependencies.strip-ansi-escapes]
version = "0.2.0"

[dependencies.tokio]
version = "1.36.0"
features = ["full"]

[dependencies.trust-dns-resolver]
version = "0.23.0"
optional = true

[dependencies.url]
version = "2.5.4"
optional = true

[dependencies.uuid]
version = "1.10.0"

[dependencies.vnc-rs]
version = "0.5.1"
optional = true

[dependencies.x509-parser]
version = "0.17.0"

[dev-dependencies.httpmock]
version = "0.7.0"

[dev-dependencies.tempfile]
version = "3.8.0"

[dev-dependencies.tokio-test]
version = "0.4.3"

[build-dependencies.openssl]
version = "0.10"
features = ["vendored"]

[build-dependencies.openssl-sys]
version = "0.9"
features = ["vendored"]

[target."cfg(unix)".dependencies.nix]
version = "0.29.0"
features = ["signal"]

[profile.deb]
debug = 0
inherits = "release"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
