mythic-c2 0.2.2

Mythic C2 agent library — message encoding, AES-256-CBC-HMAC crypto, and transport abstraction for the full agent lifecycle
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 = "mythic-c2"
version = "0.2.2"
authors = ["Zumpyx <zumpyx@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mythic C2 agent library — message encoding, AES-256-CBC-HMAC crypto, and transport abstraction for the full agent lifecycle"
documentation = "https://docs.rs/mythic-c2"
readme = "README.md"
keywords = [
    "mythic",
    "c2",
    "red-team",
    "agent",
    "protocol",
]
categories = [
    "network-programming",
    "cryptography",
    "development-tools",
]
license = "GPL-3.0-only"
repository = "https://github.com/zumpyx/mythic-c2"

[features]
default = [
    "httpx",
    "rustls",
]
dns = [
    "dep:ureq",
    "dep:url",
    "dep:getrandom",
]
getrandom = ["dep:getrandom"]
github = ["http"]
http = [
    "dep:ureq",
    "dep:url",
    "dep:getrandom",
]
httpx = ["http"]
native-tls = [
    "ureq?/native-tls",
    "tungstenite?/native-tls",
    "tungstenite?/handshake",
]
rsa-staging = [
    "dep:rsa",
    "dep:rand",
    "dep:getrandom",
    "dep:sha1",
]
rustls = [
    "ureq?/rustls",
    "tungstenite?/rustls-tls-native-roots",
    "tungstenite?/handshake",
]
websocket = [
    "dep:tungstenite",
    "dep:url",
    "dep:getrandom",
]

[lib]
name = "mythic"
path = "src/lib.rs"

[[example]]
name = "mythic_facade"
path = "examples/mythic_facade.rs"

[dependencies.aes]
version = "0.8"

[dependencies.base64]
version = "0.22"

[dependencies.cbc]
version = "0.1"
features = ["alloc"]

[dependencies.cipher]
version = "0.4"
features = [
    "alloc",
    "block-padding",
]

[dependencies.getrandom]
version = "0.2"
features = ["std"]
optional = true

[dependencies.hmac]
version = "0.12"

[dependencies.rand]
version = "0.8"
optional = true

[dependencies.rsa]
version = "0.9"
features = [
    "pem",
    "sha1",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.tungstenite]
version = "0.24"
features = ["handshake"]
optional = true
default-features = false

[dependencies.ureq]
version = "3"
optional = true
default-features = false

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

[dependencies.uuid]
version = "1"
features = [
    "serde",
    "v4",
]

[dev-dependencies.httptest]
version = "0.15"

[profile.dev]
panic = "abort"

[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
incremental = false
strip = "symbols"