#!/bin/bash # Set up user-only Homebrew installation export HOMEBREW_PREFIX=$HOME/.homebrew export PATH=$HOMEBREW_PREFIX/bin:$PATH # Install Homebrew (if not installed) if ! command -v brew &> /dev/null; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" fi # Install pentesting tools brew install nmap brew install nikto # Add more tools here as needed # Add Homebrew paths to shell profile echo "export HOMEBREW_PREFIX=\$HOME/.homebrew" >> ~/.bash_profile echo "export PATH=\$HOMEBREW_PREFIX/bin:\$PATH" >> ~/.bash_profile source ~/.bash_profile echo "User-only Homebrew setup and pentesting tools installation completed."