hacktricks Docker & Self-Hosted Deployment

GitHub

Welcome to the page where you will find each trick/technique/whatever I have learnt in CTFs, real life apps, and reading researches and news.

12,035 stars CSS CSS 1 file ยท ~2,124 tokens #hacking#hacktricks#peass#pentesting
RAW Compose
1. Pull Image (GHCR) docker pull ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image
2. Docker Run (1-Click Launch) docker run -d --name hacktricks -p 3337:3337 --restart always ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
3. Podman Run podman run -d --name hacktricks -p 3337:3337 --restart always ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
5. ORAS Pull (OCI Artifact) oras pull ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
6. Compose Deployment docker compose up -d
docker-compose.yml
Download .yml
# Run locally:  docker compose up   (or: podman compose up)  ->  http://localhost:3337
services:
  hacktricks:
    image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
    platform: linux/amd64  # published image is amd64-only
    container_name: hacktricks
    ports:
      - "3337:3000"
    volumes:
      - .:/app
    working_dir: /app
    environment:
      MDBOOK_PREPROCESSOR__HACKTRICKS__ENV: dev
    command:
      - bash
      - -c
      - >
        git config --global --add safe.directory /app &&
        mdbook serve --hostname 0.0.0.0 --port 3000