dnsm 0.3.0

Toolkit for covert data exfiltration using DNS
Documentation
# 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 = "dnsm"
version = "0.3.0"
authors = ["Raphael <kontor@dnsm.re>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Toolkit for covert data exfiltration using DNS"
homepage = "https://dnsm.re"
readme = "README.md"
keywords = [
    "gdpr",
    "itsec",
    "security",
    "exfiltration",
    "telemetry",
]
categories = [
    "security",
    "command-line-utilities",
    "network-programming",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/k-o-n-t-o-r/dnsm"

[features]
default = ["native-cli"]
native-cli = [
    "dep:clap",
    "dep:console",
    "dep:getrandom",
]
python = ["dep:pyo3"]
sqlite = ["dep:rusqlite"]
ws-server = [
    "dep:tokio",
    "dep:tokio-stream",
    "dep:warp",
    "dep:futures",
    "dep:base64",
    "dep:serde_json",
    "dep:serde",
]

[lib]
name = "dnsm"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "dnsm"
path = "src/bin/dnsm.rs"
required-features = ["native-cli"]

[[bin]]
name = "dnsm-server"
path = "src/bin/dnsm_server/main.rs"
required-features = [
    "native-cli",
    "sqlite",
]

[[bin]]
name = "dnsm-ws"
path = "src/bin/dnsm_ws.rs"
required-features = [
    "native-cli",
    "sqlite",
    "ws-server",
]

[[test]]
name = "dig_integration"
path = "tests/dig_integration.rs"

[[test]]
name = "dig_mailbox_tcp"
path = "tests/dig_mailbox_tcp.rs"

[[test]]
name = "dig_mailbox_txt"
path = "tests/dig_mailbox_txt.rs"

[[test]]
name = "ping_e2e"
path = "tests/ping_e2e.rs"

[[test]]
name = "tunnel_e2e"
path = "tests/tunnel_e2e.rs"

[[test]]
name = "wasm_build"
path = "tests/wasm_build.rs"

[[test]]
name = "wasm_compat"
path = "tests/wasm_compat.rs"

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

[dependencies.blake3]
version = "1.8.7"

[dependencies.clap]
version = "4.6.7"
features = [
    "derive",
    "wrap_help",
]
optional = true

[dependencies.console]
version = "0.16.6"
optional = true

[dependencies.futures]
version = "0.3.34"
optional = true
default-features = false

[dependencies.getrandom]
version = "0.3.4"
optional = true

[dependencies.lzma-rust2]
version = "0.25.0"

[dependencies.pyo3]
version = "0.30"
features = ["extension-module"]
optional = true

[dependencies.rusqlite]
version = "0.41.1"
features = ["bundled"]
optional = true

[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.154"
optional = true

[dependencies.tokio]
version = "1.54.1"
features = [
    "macros",
    "signal",
    "sync",
    "rt-multi-thread",
]
optional = true

[dependencies.tokio-stream]
version = "0.1.19"
optional = true

[dependencies.warp]
version = "0.4.3"
features = [
    "websocket",
    "server",
]
optional = true

[dev-dependencies.fastrand]
version = "2.5.0"

[dev-dependencies.rusqlite]
version = "0.41.1"
features = ["bundled"]

[target.'cfg(target_arch = "wasm32")'.dependencies.blake3]
version = "1.8.7"
features = ["wasm32_simd"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.107"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.130"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.80"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true