Per avere tutto il sito web di HackTricks segui questi passaggi:
# Download latest version of hacktricks
git clone https://github.com/HackTricks-wiki/hacktricks
# Select the language you want to use
export LANG="master" # Leave master for english
# "af" for Afrikaans
# "de" for German
# "el" for Greek
# "es" for Spanish
# "fr" for French
# "hi" for HindiP
# "it" for Italian
# "ja" for Japanese
# "ko" for Korean
# "pl" for Polish
# "pt" for Portuguese
# "sr" for Serbian
# "sw" for Swahili
# "tr" for Turkish
# "uk" for Ukrainian
# "zh" for Chinese
# Run the docker container indicating the path to the hacktricks folder
docker run -d --rm --platform linux/amd64 -p 3337:3000 --name hacktricks -v $(pwd)/hacktricks:/app ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image bash -c "mkdir -p ~/.ssh && ssh-keyscan -H github.com >> ~/.ssh/known_hosts && cd /app && git config --global --add safe.directory /app && git checkout $LANG && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0"E poi vai alla pagina http://localhost:3337
Script
Se utilizzi questo script lo puoi fare automaticamente:
#!/bin/bash
sudo usermod -aG docker $USER
# Riavvia la sessione terminale
newgrp docker
export LANG=it # o 'en'
# Ferma il container se già esiste
docker stop hacktricks 2>/dev/null
# Avvia il container
docker run -d --rm --platform linux/amd64 -p 3337:3000 --name hacktricks \
-v $(pwd)/hacktricks:/app \
ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image \
bash -c "mkdir -p ~/.ssh && ssh-keyscan -H github.com >> ~/.ssh/known_hosts && cd /app && git config --global --add safe.directory /app && git checkout $LANG && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0"
echo "HackTricks avviato su http://localhost:3337"
echo "Per fermarlo: docker stop hacktricks"chmod +x hacktricks.sh
./hacktricks.sh