#!/usr/bin/env bash
# Wrapper for commix (command injection testing tool)
# Routes to the correct commix installation

COMMIX_PATH="/home/e/commix/commix.py"

if [[ ! -f "$COMMIX_PATH" ]]; then
  echo "Error: commix not found at $COMMIX_PATH" >&2
  echo "Install with: git clone https://github.com/commixproject/commix.git /home/e/commix" >&2
  exit 1
fi

# Execute commix with python3
exec python3 "$COMMIX_PATH" "$@"
