Saltar a contenido

Goodhound

"Clase de la hoja"

########################################################################################################################################################################################################################################################## Copiar todos los comandos
########################################################################################################################################################################################################################################################## Generar PDF seleccionado/button

■/div titulada

Herramienta de análisis de datos BloodHound para la evaluación de seguridad Active Directory - comandos esenciales y patrones de uso.

Sinopsis

Goodhound es un directorio activo de seguridad utilizado para análisis de datos de sabuesos para la evaluación de seguridad del directorio activo. Esta hoja de trampa cubre los comandos y flujos de trabajo más utilizados.

Apoyo de plataforma: Categoría: Seguridad

Instalación

Linux/Ubuntu

# Package manager installation
sudo apt update
sudo apt install goodhound

# Alternative installation methods
wget -O goodhound https://github.com/example/goodhound/releases/latest
chmod +x goodhound
sudo mv goodhound /usr/local/bin/

macOS

# Homebrew installation
brew install goodhound

# Manual installation
curl -L -o goodhound https://github.com/example/goodhound/releases/latest
chmod +x goodhound
sudo mv goodhound /usr/local/bin/

Windows

# Chocolatey installation
choco install goodhound

# Scoop installation
scoop install goodhound

# Manual installation
# Download from official website and add to PATH

Comandos básicos

Command Description
goodhound --help Display help information
goodhound --version Show version information
goodhound init Initialize goodhound in current directory
goodhound status Check current status
goodhound list List available options/items

Operaciones comunes

Uso básico

# Start goodhound
goodhound start

# Stop goodhound
goodhound stop

# Restart goodhound
goodhound restart

# Check status
goodhound status

Configuración

# View configuration
goodhound config show

# Set configuration option
goodhound config set <key> <value>

# Reset configuration
goodhound config reset

Operaciones avanzadas

# Verbose output
goodhound -v <command>

# Debug mode
goodhound --debug <command>

# Dry run (preview changes)
goodhound --dry-run <command>

# Force operation
goodhound --force <command>

Operaciones de archivo

Command Description
goodhound create <file> Create new file
goodhound read <file> Read file contents
goodhound update <file> Update existing file
goodhound delete <file> Delete file
goodhound copy <src> <dst> Copy file
goodhound move <src> <dst> Move file

Operaciones de red

# Connect to remote host
goodhound connect <host>:<port>

# Listen on port
goodhound listen --port <port>

# Send data
goodhound send --data "<data>" --target <host>

# Receive data
goodhound receive --port <port>

Características de seguridad

Autenticación

# Login with credentials
goodhound login --user <username>

# Logout
goodhound logout

# Change password
goodhound passwd

# Generate API key
goodhound generate-key

Encryption

# Encrypt file
goodhound encrypt <file>

# Decrypt file
goodhound decrypt <file>

# Generate certificate
goodhound cert generate

# Verify signature
goodhound verify <file>

Solución de problemas

Cuestiones comunes

Issue: Command not found

# Check if installed
which goodhound

# Reinstall if necessary
sudo apt reinstall goodhound

Issue: Permission denied

# Run with sudo
sudo goodhound <command>

# Fix permissions
chmod +x /usr/local/bin/goodhound

Issue: Errores de configuración

# Reset configuration
goodhound config reset

# Validate configuration
goodhound config validate

Debug Commands

Command Description
goodhound --debug Enable debug output
goodhound --verbose Verbose logging
goodhound test Run self-tests
goodhound doctor Check system health

Buenas prácticas

Seguridad

  • Siempre verifique las sumas de verificación al descargar
  • Use métodos de autenticación fuertes
  • Actualización regular a la última versión
  • Seguir el principio de mínimo privilegio

Ejecución

  • Use los tamaños adecuados de amortiguación
  • Supervisar el uso de los recursos
  • Optimize configuración para su caso de uso
  • Mantenimiento y limpieza regulares

Mantenimiento

# Update goodhound
goodhound update

# Clean temporary files
goodhound clean

# Backup configuration
goodhound backup --config

# Restore from backup
goodhound restore --config <backup-file>

Integración

Scripting

#!/bin/bash
# Example script using goodhound

# Check if goodhound is available
if ! command -v goodhound &> /dev/null; then
    echo "goodhound is not installed"
    exit 1
fi

# Run goodhound with error handling
if goodhound <command>; then
    echo "Success"
else
    echo "Failed"
    exit 1
fi

API Integration

# Python example
import subprocess
import json

def run_goodhound(command):
    try:
        result = subprocess.run(['goodhound'] + command.split(),
                              capture_output=True, text=True)
        return result.stdout
    except Exception as e:
        print(f"Error: \\\\{e\\\\}")
        return None

Medio ambiente

Variable Description Default
GOODHOUND_CONFIG Configuration file path ~/.goodhound/config
GOODHOUND_HOME Home directory ~/.goodhound
GOODHOUND_LOG_LEVEL Logging level INFO
GOODHOUND_TIMEOUT Operation timeout 30s

Archivo de configuración

# ~/.goodhound/config.yaml
version: "1.0"
settings:
  debug: false
  timeout: 30
  log_level: "INFO"

network:
  host: "localhost"
  port: 8080
  ssl: true

security:
  auth_required: true
  encryption: "AES256"

Ejemplos

Corrientes básicas de trabajo

# 1. Initialize
goodhound init

# 2. Configure
goodhound config set host example.com

# 3. Connect
goodhound connect

# 4. Perform operations
goodhound list
goodhound create example

# 5. Cleanup
goodhound disconnect

Avanzado flujo de trabajo

# Automated deployment
goodhound deploy \
  --config production.yaml \
  --environment prod \
  --verbose \
  --timeout 300

# Monitoring
goodhound monitor \
  --interval 60 \
  --alert-threshold 80 \
  --log-file monitor.log

Recursos

Documentación oficial

Comunidad

Tutoriales

-...

Última actualización: 2025-07-05