Sign inSign up

joshuapfritz/hak5c2

By joshuapfritz

β€’Updated 10 months ago

Cloud C2 (Hak5) – Minimal, Distroless, Non-Root, K8s-Ready

Image
0

1.2K

joshuapfritz/hak5c2 repository overview

⁠Cloud C2 (Hak5) – Distroless, Non-Root, K8s-Ready

Minimal, distroless runtime for Hak5 Cloud CΒ², built via multi-stage Dockerfile. A tiny Go entrypoint maps environment variables β†’ C2 flags, so you can configure entirely with env vars. Runs non-root, stores the DB at /data (PVC-friendly), and works great behind Traefik or any reverse proxy.

You are responsible for Hak5 licensing/EULA. This image downloads the official C2 binary during build; no binaries are shipped in this repo.

Inspired by LindezaGrey


⁠Highlights

  • 🧱 Distroless final image (no shell), non-root user
  • βš™οΈ Env-driven config β†’ C2 CLI flags
  • πŸ“¦ DB at /data/c2.db (bind mount or PVC)
  • πŸ” Works with TLS at the app or at your ingress
  • ☸️ Kubernetes-friendly (Traefik v3 IngressRoute/IngressRouteTCP example)

⁠Tags

  • latest β†’ current stable (e.g., 3.5.0)
  • 3.5.0 β†’ pinned release
    (Single-arch for now; see -amd64/-arm64 suffixes if published.)

⁠Quick start (Docker)

# pull
docker pull joshuapfritz/hak5c2:3.5.0

# run (HTTP on 8080, SSH relay on 2022)
docker run -d --name cloudc2 \
  -p 8080:8080 -p 2022:2022 \
  -v c2-data:/data \
  -e fqdn=localhost \
  --restart unless-stopped \
  joshuapfritz/hak5c2:3.5.0

GitHub Repo Release Issues License

Source & Docs

Tag summary

Content type

Image

Digest

sha256:f81211128…

Size

7 MB

Last updated

10 months ago

docker pull joshuapfritz/hak5c2