You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Enable strict error handling for better script robustness
set -e # Exit immediately if a command exits with a non-zero status
set -u # Treat unset variables as an error and exit immediately
set -o pipefail # Return the exit status of the last command in a pipeline that failed
set -x # Print each command before executing it (useful for debugging)
# Step 1: Install prerequisites
# setup virtual python environment
python -m venv venv
source ./venv/bin/activate
# install python requirements
pip install -e .
# Step 2: Request an OpenAI API key
echo
echo'Currently, May 2024, running hackingBuddyGPT with GPT-4-turbo against a benchmark containing 13 VMs (with maximum 20 tries per VM) cost around $5.'
echo
echo'Therefore, running hackingBuddyGPT with GPT-4-turbo against containing a container with maximum 10 tries would cost around $0.20.'
echo
echo"Enter your OpenAI API key and press the return key:"
read OPENAI_API_KEY
echo
# Step 3: Start hackingBuddyGPT against a container
echo"Starting hackingBuddyGPT against a container..."